Last post Oct 31, 2008 12:04 AM by Thomas Sun – MSFT
Oct 28, 2008 11:07 PM|scozz|LINK
I have attached a web deployement project to a website application in VS 2008, a build of the web deployment project is automated through Team Foundation Build. This all works fine aside from one thing... the output folder is replaced even if the web deployment
project does not build in debug/release mode. Basicallly, I can purposely break the code so the project will not compile, but the web deployment project compiles and spits out the output like nothings wrong. I am using web deployment project 2008 which clearly
states as per
scott guthries blog that one of the new features of VS web deployment project 2008 is "Replacing output only if web deployment builds succeed".
Is this feature automatically executed when building the WDP or is it something i need to configure in the project file? And if so how do i go about this...? Does anyone know? Is there anybody out there?
Oct 31, 2008 12:04 AM|Thomas Sun – MSFT|LINK
From your description, I understand that the OutPut folder of WDP is replaced when we only build your ASP.NET application, right?
Firstly, please make sure that the folder is the path specified in the OutPut of WDP.
I cannot repro the issue on my machine. When I break the code in my ASP.NET project to compile failed, WDP won't compile successfully too. Because when we build the WDP, WDP will use
aspnet_compiler.exe to compile this ASP.NET project firstly and then replace the OutPut of WDP only if this ASP.NET project is compiled successfully. We can see the compile steps in the OutPut window of VS while building.
If we only build ASP.NET application, the WDP also be built by default. We can only compile ASP.NET project by configuring solution's configuration:
Enter Solution's Properties page -> Configuration Properties -> Configuration -> check or uncheck Build CheckBox under corresponding build mode.
I look forward to hearing from you.