Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cant convert website to web application in Visual Studio 2019

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?

like image 691
DonutSteve Avatar asked Nov 01 '25 13:11

DonutSteve


2 Answers

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"!

like image 102
Owen Avatar answered Nov 04 '25 02:11

Owen


It's a little late now. But it has been useful to me.

Just as @Owen says, see image below. Keep in mind that they must have CodeBehind.

enter image description here

like image 42
Frank Avatar answered Nov 04 '25 02:11

Frank



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!