In vs10 msbuild.exe, how can I ignore a specific project in solution.sln?

In vs10 msbuild.exe, how can I ignore a specific project in solution.sln?

I am creating a large project that moves in Visual Studio 10.0. In the IDE, I can disable the project in the configuration manager, and it will not build it. I need to imitate this behavior with a command line call in msbuild.exe.

The project I want to get around is the * .dll plugin with a link error. I am stuck in stupidity with a link error at the moment, and since it is standing alone, I can start the main program without it and just live with a warning at runtime that it is not there.

I need switch magic regarding msbuild.exe calls.

0
visual-studio-2010 msbuild
source share
1 answer

If you have a specific configuration in sln (configured in VS Configuration Manager) that you want to create using MSBuild, you can do this with the following command line:

msbuild / p: Configuration = MyConfiguration MySolution.sln

+2
source share

All Articles