Visual Studio 2013 and MSBuild command line switches
问题 Is there a way to specify msbuild switches like /p:option=value within Visual Studio 2013? 回答1: Formalizing my comment from above. A possible solution may be to have a targets file (e.g. VisualStudioOverrides.targets ) that defines the properties to be overridden and their values. Then, if this file exists then the csproj file will import it, thus override the relevant properties. Such an import statement should be placed at the bottom of the csproj file (after the properties to be overridden