Can you prevent MSBuild.exe from running Build Events?

后端 未结 9 1943
我在风中等你
我在风中等你 2020-12-08 00:11

I\'m building a number of projects via a script, and the occasional use of custom build events causes a great deal of difficulty for the build system. If it is possible, I\

9条回答
  •  猫巷女王i
    2020-12-08 00:40

    Pre/PostBuildEvents are properties, so to override them just set them from command line to empty string.

    msbuild foo.sln /p:PreBuildEvent= /p:PostBuildEvent=
    

提交回复
热议问题