How to append conditional compilation symbols in project properties with MSBuild?
问题 I am stuck in a situation where I have an MSBuild script that needs to read the conditional compilation symbols set in project's build property. I have the following code in my MSBuild script file <PropertyGroup> <DefineConstants>$(DefineConstants);INTER</DefineConstants> </PropertyGroup> <Target Name="Compile"> <Message Text="$(DefineConstants)"/> <MSBuild Projects="CustomAssemblyInfo.csproj" Targets="Rebuild" Properties="DefineConstants=$(DefineConstants)" /> </Target> I was assuming that