Building from a Solution file

I'm having trouble using MSBuild to compile solution files.

For example, I have a solution with 3 projects, but I set one of the projects not to compile in my Debug configuration. I run the following command:

msbuild "C:\Temp\Solution\Solution.sln" /p:Configuration=Debug

However it builds all 3 projects, whereas if I run the following command:

devenv "C:\Temp\Solution\Solution.sln" /build debug

It only builds the two that I have set to build.

Is there a way to get MSBuild to build using the settings from the solution file?

Thanks,
Matt Garven

[567 byte] By [Matt_Garven] at [2008-2-7]
# 1
Matt,
In Beta 2 msbuild.exe didn't support solution configurations yet. So, it can't tell that you don't want one of the projects to build.

For final release, we expect to have this fixed. If you get a chance to try any interim release before the final shipping release give it a try and let us know if there's any issues.

Thanks
Dan (msbuild@microsoft.com)
"This posting provided "as-is" with no warranties"

DanMoseley at 2007-9-8 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...

Visual Studio

Site Classified