4

I am trying to convert an old Visual Basic web site project, into a web application, using VS2019. I have tried following this:

https://devblogs.microsoft.com/aspnet/converting-a-web-site-project-to-a-web-application-project/

https://learn.microsoft.com/en-us/previous-versions/aa983476(v=vs.140)?redirectedfrom=MSDN

However, when I copy the remaining files (after converting app_code) and try to convert it to a web application, it is unable to parse any of the aspx files. I haven't been able to find the reason for this. Do any one have any ideas?

TylerH
  • 20,799
  • 66
  • 75
  • 101
DonutSteve
  • 317
  • 4
  • 15
  • Here is a discussion about website conversion maybe you can refer to. [How to convert ASP.NET website to ASP.NET web application](https://stackoverflow.com/questions/735054/how-to-convert-asp-net-website-to-asp-net-web-application) – 大陸北方網友 Dec 14 '20 at 05:36

1 Answers1

10

I finally found the secret sauce! You have to select the root project node in Solution Explorer and then select "Project" from the filebar menu (not the right click menu). The very last menu item is "Convert to Web Application"!

RyanfaeScotland
  • 1,216
  • 11
  • 30
Owen
  • 426
  • 5
  • 15