Trying to understand ASP.NET 4.8 useability with visual studio 2022

jeff from Baltimore 20 Reputation points
2024-02-26T18:29:12.9766667+00:00

Hello, I am a hobbyist who is still using visual web developer 2008 to create .aspx forms for my simple websites. My backend language of choice is VB. I realize that this approach is old school, but has been working for me. I am better with HTML, CSS, and plain Javascript manipulation than I am with object oriented programming tasks. Question, I have been playing around with visual studio 2019 and visual studio 2022. Can I upgrade to either IDE and continue using the .NET4.8 framework and continue to create .aspx files with VB? Thanks

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,269 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lan Huang-MSFT 25,636 Reputation points Microsoft Vendor
    2024-04-04T05:32:21.0666667+00:00

    Hi @jeff from Baltimore,

    VB can be used in Visual Studio 2022. How to use Visual Studio to create a Visual Basic application, you can view the tutorial.

    https://learn.microsoft.com/en-us/visualstudio/get-started/visual-basic/?view=vs-2022

    continue to create .aspx files with VB

    You can create a WebForm project, select Visual Basic for language when creating the project at the beginning, then select 4.8 for Framework, and then select Web Forms.

    User's image

    User's image

    User's image

    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Albert Kallal 4,651 Reputation points
    2024-02-26T19:45:10.04+00:00

    Yes, there is full support for your setup. I currently maintain a site that was asp.net, and .net 4.0 framework. We have changed the project settings, and are now using 4.8 for the web site. And I'm using the free edition of Visual Studio 2022. While this technology is older, there is full support for a Web Forms site or even a Web Forms application. However, by default, vs2022 does not install all the parts required for Webform development. (it's already a large product. And visual studio has so many project types that you can create, that it can be overwhelming. So, now by default, the project types (such as WebForms) are not installed by default. So, after having installed Visual Studio, then you need to install what are called "additional" workflows. Once done, then you can develop just fine. So, from vs2022, then go tools->Get tools and features. From that, you want to ensure these are selected: User's image

    Then on the right side, make sure you select these: User's image

    At that point, you can now say create a brand new asp.net webforms site. the template you choose is this one after selecting new project: User's image

    So, if you have a existing project (.sln), then you should be able to open that project. Even ones created by that 2008 version of Visual Studio. And last but not least? By default, the newer WebForms desinger is turned on, but it does not correctly support drag + drop from the toolbox to the web form desinger surface, so you should change this setting: tools-options->geneal This setting: User's image

    So, you are 100% free to use asp.net, WebForms, and vb.net. As noted, I currently support some sites based on the above choices.