Hi,
I want to add some conditional compilation symbols when invoking msbuild to a solution file.
I tried to use msbuild /p:DefineConstants:MY_DEFINE file.sln, but the problem is that instead of adding MY_DEFINE to the existing list, it replaces it, so if a specific project in the solution has a conditional compilation symbol set, it stops being defined.
When invoking csc directly I can do this easily by passing /D. Isn't there any way to do this in msbuild (whithout requiring to change the individual .csproj's)?
Best Regards,
Gustavo Guerra
I want to add some conditional compilation symbols when invoking msbuild to a solution file.
I tried to use msbuild /p:DefineConstants:MY_DEFINE file.sln, but the problem is that instead of adding MY_DEFINE to the existing list, it replaces it, so if a specific project in the solution has a conditional compilation symbol set, it stops being defined.
When invoking csc directly I can do this easily by passing /D. Isn't there any way to do this in msbuild (whithout requiring to change the individual .csproj's)?
Best Regards,
Gustavo Guerra