开发者

Under vs10 msbuild.exe how can a specific project within a solution.sln be Ignored?

开发者 https://www.devze.com 2023-02-11 08:44 出处:网络
Under vs10 msbuild.exe how can a specific project within a solution.sln be Ignored? I am building a large project that is moving to Visual Studio 10.0. In the IDE I can开发者_如何学JAVA uncheck a pro

Under vs10 msbuild.exe how can a specific project within a solution.sln be Ignored?

I am building a large project that is moving to Visual Studio 10.0. In the IDE I can开发者_如何学JAVA uncheck a project within the configuration manager and it will not build it. I need to mimic that behavior with a command line call to msbuild.exe.

The project I want to bypass is an *.dll plugin with a link error. I am stuck on stupid with the link error at the moment and since it stands alone, I can run the main program with out it and just live with a warning at run time that it isn't present.

I need some switch magic concerning calls to msbuild.exe.


If you have a certain configuration in the sln (configured in VS Configuration Manager) that you want to build with MSBuild, you can do so with the following command line:

msbuild /p:Configuration=MyConfiguration MySolution.sln

0

精彩评论

暂无评论...
验证码 换一张
取 消