May 14, 2007 09:27 AM|delta|LINK
We want to exclude the web deployment project from building when we build our solution inside VS2005. We have a web deployment project added to our solution and it is under VSS source control. We have a bat file that runs on the development test server
every night to give us a nightly build of our application. I've been told we need to build this with MSBuild and set the configuration (with the /p switch) to be Debug so that we get full trace output when an exception occurs. The bat file gets the latest
version of the source code from source safe onto the machine, then runs MSBuild to build the solution file.
This is fine and works, except our solution has to be setup such that the configuration of Debug should NOT exclude the WDP from building. Normally we would go to the configuration for the solution and uncheck the WDP project in Debug mode so normal debug
building by developers would NOT build the WDP. However, if we do this and check in the SLN file, the server will run the BAT file that night, download the latest SLN file and build it, but the WDP project will be excluded and then we won't get the desired
output on the server.
Is there another way to control whether or not the WDP gets built so that we can build it in Debug configuration mode on the server during the nightly build, but NOt have it built when the solution is built (even though set to Debug configuration) locally
on developer machines inside VS 2005?
Thanks for any help!!