User372121194 posted
Hi,
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.