Last post May 07, 2008 04:32 AM by Thomas Sun – MSFT
May 02, 2008 01:27 AM|gumby2701|LINK
Hi, I hope somebody can help me :)
I have a website that I have upgraded from VS2005 to 2008 and I converted it to a webapplication.... Well I think I did. ;P
For some reason when I try and add "Project Output" from my Deployment Project the only option I get is "Content Files"
I created a completely blank web application in 2008 and I can see there is other options to choose from.
Basically my problem is that I always have to deploy source code so that IIS compiles it. However I would like it if I did not have to deploy .cs files I have tried setting debug to "false" in the web.config file but this does not make a difference.
One thing that may be of interest, in the upgraded project the App_Code directory is present however in the new 2008 web application there does not seem to be that directory.
App_Code ---> Contains all Business and DB Logic
Root_Dir ---> Contains Pages and a aspx.cs file with code behind
Many thanks for your help
May 05, 2008 05:30 PM|nasirf|LINK
If you had a web site instead of web solution in 2005 i will suggest to convert it to web solution first in 2005 before moving it to 2008.
If you do not have ASP NET web solution option in 2005 you have to download it. 2005 comes with only website.
May 07, 2008 04:32 AM|Thomas Sun – MSFT|LINK
There are a couple of project type of ASP.NET, website project and web application. I guess your project is website project which only have "Content Files" while adding to web setup project.
In your case, you can try to add the Web Deployment Project to your solution to precompile this website and then add the compiled output to your web setup project. If you do so, you can protect your source code. To add the Web Deployment Project in Visual
Studio 2008, you need to download and install
Or you can try to convert your website to web application just like the member above suggested.
I hope this helps.