How can I exclude a project from a build in MSBuild?

前端 未结 4 897
孤城傲影
孤城傲影 2020-11-28 09:34

I need to build a solution, but exclude one project. How should I do it?

I searched a lot about this issue, but nothing could help.

An ItemGroup

4条回答
  •  天命终不由人
    2020-11-28 10:11

    create a master.proj file:

    in another ItemGroup add DefaultExclude properties for programs - put it in front of the solution -- BA was Canadian
    Configuration=Release Release drop the master.proj into the directory with the programs and msbuild the master.proj compiles everything except... that HelloWorld

提交回复
热议问题