VS2005 Web Setup Projects August 17, 2006Posted by codinglifestyle in ASP.NET, Visual Studio.
Tags: project output, setup, web deployment, web project
Upon wrapping up my first major project on VS2005 I went to create a web setup project and noticed what I thought was a bug. When adding Project Output and selecting my website, only Content files were listed. This would include source code rather than being a release version of the project. Being that this behavior differs from VS2003 my collegues were at a loss to explain it and googling didn’t yeild much. I was forced to Add Files which referenced the files I wanted but was sure this wasn’t correct. After another round of googling I found the answer:
For some reason beyond me, you need to create an interim project which will hold the deployment of the web site. You may then add this project to your setup and select Project Output. But wait, there’s more. You can’t create a deployment project out of the box, because they didn’t seem fit to include it as standard.
- So, what you need to do first is download the Web Deployment setup from Microsoft which allows you to create the interim deployment project: http://msdn.microsoft.com/asp.net/reference/infrastructure/wdp/default.aspx
- After this is installed and you restart VS2005, right click your web project and select “Add deployment project”. This project allows you to specify how you’d like your assemblies compiled and few other options.
- Now create a Web Setup Project, add Project Output, select the deployment project and the configuration.
Congratulations, you’ve now done in three steps what you used to be able to do in two.