Results 1 to 4 of 4

Thread: VS 2026 Web Sites

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2026
    Posts
    2

    VS 2026 Web Sites

    I have several Visual Basic 2012 websites that were created using the "ASP.NET Empty Web Application" template. I used that template because I do not want or need any of the extras that the other templates add in. Several of these were actually upgraded from VS 2008.

    I would like to upgrade to Visual Basic 2026 in order to take advantage of the newer .NET frameworks.

    If I import an existing project into Visual Basic 2026, it still targets the 4.8.2 framework, and I cannot change it to 10.0.

    If I create a new project, I only have the options of test projects.

    I do not want or need any of the templates or core controllers (Blazer, Razor, MVC, RESTful, etc.)

    Any suggestions would be greatly appreciated.

    Thank you

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,371

    Re: VS 2026 Web Sites

    Quote Originally Posted by jsblume View Post
    If I import an existing project into Visual Basic 2026, it still targets the 4.8.2 framework, and I cannot change it to 10.0.
    Correct. While you can manually upgrade from .NET Framework to .NET Core, you cannot simply change the version inside the project and have it update. There were too many fundamental changes.

    Quote Originally Posted by jsblume View Post
    If I create a new project, I only have the options of test projects.

    I do not want or need any of the templates or core controllers (Blazer, Razor, MVC, RESTful, etc.)
    Unfortunately, the project you want is the ASP.NET Core Web API, and Microsoft has decided that VB.NET is not the way of the future, so it is unsupported. See here: https://learn.microsoft.com/en-us/an...re-api-project

    The recommended solution is to basically create an N-Tier solution, e.g.
    - API Layer (C#)
    - Domain Layer (VB.NET)
    - Infrastructure Layer (VB.NET)

    Keep the API layer as lean as possible and have the domain/infrastructure layers as class library projects that hold your business logic and what have you.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  3. #3
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,371

    Re: VS 2026 Web Sites

    Moderator Action: Moved to ASP.NET forum
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2026
    Posts
    2

    Re: VS 2026 Web Sites

    Sorry for the late response, I've been down with the flu.

    Thank you very much. When I was working as a developer for desktop applications, I used this 3-Tier solution, which is likely similar in intent to yours:

    -Data Layer
    -Business Layer
    -Presentation Layer

    I got away from that with web development. I'll rewrite so that I have the presentation layer in C# and the other two in VB.

    Joe


    Quote Originally Posted by dday9 View Post
    Correct. While you can manually upgrade from .NET Framework to .NET Core, you cannot simply change the version inside the project and have it update. There were too many fundamental changes.


    Unfortunately, the project you want is the ASP.NET Core Web API, and Microsoft has decided that VB.NET is not the way of the future, so it is unsupported. See here: https://learn.microsoft.com/en-us/an...re-api-project

    The recommended solution is to basically create an N-Tier solution, e.g.
    - API Layer (C#)
    - Domain Layer (VB.NET)
    - Infrastructure Layer (VB.NET)

    Keep the API layer as lean as possible and have the domain/infrastructure layers as class library projects that hold your business logic and what have you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width