Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert to Web Application in VS 2015.1

Tags:

I'm running Visual Studio 2015 Enterprise Update 1.

I created an empty Visual Basic ASP.NET Website targeting the .NET Framework 4.5.2. And I want to convert it to an ASP.NET Web Application.

Under the Website's context menu in Solution Explorer there is no "Convert to Web Application" menu-item, nor is there anything under the Website menu in the main-menu bar:

enter image description here

enter image description here

Where has the feature gone? Has it been removed completely in Update 1?

like image 296
Dai Avatar asked Jan 12 '16 04:01

Dai


1 Answers

This is the most confusing part of converting websites to web applications. The way you need to do it is to:

  1. Create a new Web Application project
  2. Copy all of your website contents into it (you could create the *.csproj file in the same website directory, then include all files into the project without actually having to move them)
  3. The command will be available on the WebApp project (under the Project menu, at the bottom)

Basically at that point the command looks at the contents of the WebApp project and makes adjustments so that they are more suitable for a WebApp project.

like image 178
Jimmy Avatar answered Nov 12 '22 01:11

Jimmy