Slow compilation of a ASP.NET Web Deployment Project in Visual Studio 2010 Slow compilation of a ASP.NET Web Deployment Project in Visual Studio 2010 asp.net asp.net

Slow compilation of a ASP.NET Web Deployment Project in Visual Studio 2010


had about the same thing. checking processes and swapping showed lack of memory. VS2010 was swapping it's feet off. So upgraded memory to 6GB and works like sunshine. Whats your hardware config?


Your problem is that the solution is very large and the web deployment project is copying it from one directory to another that's why it is taking that long, what you have to do is that you should exclude any unwanted folders from being deployed (images, files, anything not needed) to do so follow these easy steps:

  1. Right click on the web deployment project and click on Open Project File.

  2. in the wdproj file you will see a tag called <ItemGroup>

  3. Inside this tag add the following line: <ExcludeFromBuild Include=”$(SourceWebPhysicalPath)\FolderName\**\*.*” />

  4. Save and close your wdproj file and that’s it, you can try to build now.


I also installed the new version of the Web Deployment Project for VS 2010, because the solution also includes a web deployment project which I'm using to precompile .aspx/.ascx etc. into a single DLL

remove your current web deployment project and then add new: right click on Site -> Add Web Deployment project ( if you migrated current from VS 2008 ).

I have a solution with 100 projects and had bad filling when built it too ( about 15-20min ).. but then I have removed HDD and put SSD and now I'm happy.. 3-4 mins for build !