119

I am managing an old web application which still has legacy code from Framework 1 (would you believe it), currently on Framework 4.0.

As and when I need to fix or upgrade a web page, I convert it to a web application web page by clicking "Convert to Web Application".

VS 2013 doesn't appear to have the same menu item. Am I missing something?

Rob
  • 3,074
  • 4
  • 31
  • 32

3 Answers3

236

It's been moved to the 'Project' menu towards the bottom after selecting the project or folder:

Convert to Web Application

Sources: http://connect.microsoft.com/VisualStudio/feedback/details/806246/visual-studio-2013-web-forms-conver-to-web-applications

Ryan Capp
  • 2,414
  • 1
  • 13
  • 8
  • 1
    You can also select aspx/ascx files and the option is available. This is useful when you want to regenerate the .designer file, by deleting it and running the 'Convert to Web Application' command over the markup file. – julealgon Dec 20 '13 at 14:36
  • 19
    This is not what I see - when I select a web site project in vs2013 the "project" menu switches to a "website" menu, which has no such option. I did find, however, that there is a mapping for it in the keyboard options, so it is still there somewhere! I mapped it to a key combination but got "The key combination ... is bound to command (Convert to Web Application) which is not currently available" in the status bar. :/ – enashnash Feb 21 '14 at 18:47
  • 4
    See this answer. I suspect you're in a web site, and not a web application project. http://stackoverflow.com/questions/735054/how-to-convert-asp-net-website-to-asp-net-web-application – Dave Mateer Feb 25 '14 at 13:36
  • There's a problem with converting an entire app. We have an app which is a mix of CodeFile and CodeBehind (don't ask...). I can't do just one file, and converting the entire project converts those which are CodeFiles as well. – LarryBud Jan 08 '15 at 14:26
  • when you are in a website, there is no project menu in Visual Studio 2013 – Ahm3d Said Jul 17 '15 at 02:52
  • 2
    RTFM - This was never available from a web site project. You have to create a web application project first, then copy the web site project files to it... -> https://msdn.microsoft.com/en-us/library/vstudio/aa983476(v=vs.100).aspx – cchamberlain Aug 15 '15 at 00:11
  • 6
    Yeah @cchamberlain, but you have to understand the guys, it's not really intuitive to "Convert to Web Application" when you're already inside a web application. ;-) Anyway I just wanted to add it's exactly the same thing under VS 2015, in case someone still has any doubt about it. – Charles Roberto Canato Oct 27 '15 at 18:50
  • If you can't find this option, make sure you select the project node in the solution explorer first, then check the Project menu again. D'oh! – Roman Starkov Jul 02 '16 at 17:16
  • 3
    Update - In VS 2017 the "Convert to Web Application" is still listed under the VS Project menu as show above. Don't look for it in the project context menu as it is no longer listed there. – Yogi Apr 06 '18 at 17:40
  • 1
    Roberto, A+ comment. Just confirmed it exists in VS 2019 from the Project menu in the WAP project type. Saved me from having to declare a whole lot of controls manually. – b.pell Feb 09 '21 at 15:38
-1

Open your .sln file i.e. solution file

change the below lines 1) From ,Microsoft Visual Studio Solution File, Format Version 12.00 to, Microsoft Visual Studio Solution File, Format Version 10.00

2) From, TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5" To, TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"

-3

MSDN has a walkthrough on converting manually.

Chris Schiffhauer
  • 17,102
  • 15
  • 79
  • 88
  • Your link doesn't help much but thanks anyway. I still need to upgrade each page as and when I need to change it... so I use VS 2012! – Rob Nov 06 '13 at 10:04
  • Thanks, but the OP was asking about a specific menu item that appears missing in VS2K13. The accepted answer indicates that it was simply moved to a different menu. – Vivian River Nov 05 '14 at 20:09