.NET 6.0 missing when creating a ASP.NET MVC Application in visual basic - asp.net

I'd like to create a MVC web app using ASP.NET and visual basic.
So, in Visual Studio, i've selected the corresponding template project :
In the next screen, why .NET 6.0 is missing (considering that if I select C# project template, .NET 6.0 is selectable) ?
EDIT:
I used Visual Studio Community 2022 up to date.
Here are the choices that i had when filtered to VB and Web project type:

Which version are you using? .NET 6 is only supported in VS 2022.
Another thing: You selected (.NET Framework) project. You have to select (Core)

Related

Visual Studio 2022 - Visual Basic ASP.NET Web Application

I 've downloaded/installed Visual Studio 2022 Community Edition but there is no way to find the ability to create a new ASP.NET Web Application (.Net Framework) using Visual Basic. It looks like i can only develop Windows Desktop Application using it.
Has it been deprecated ? If not how can i bring it back to life?
Run the Visual Studio installer.
Inside the .NET group, below the ".NET Framework 4.8 targeting pack", there is a component named .NET Framework project and item templates and make sure that you have installed it.
Visual Studio 2022 Installer - individual components .in NET group
Hovering over the component, the tooltip describes it as:
Enables .NET Framework project templates, item templates & related
features for .NET Framework development.
See: https://www.howtosolutions.net/2021/11/visual-studio-missing-asp-net-web-application-template-dotnet-framework/

Can we use vb.net in MVC Asp.net 2017

Can we use vb.net lagnuage in MVC ASP.NET 2017 or latest version of Visual Studio 2017.
Yes. I see no reason why that wouldn't be possible.
In Visual Studio 2017 you have the options to create an ASP.NET MVC 5 / Web API project using Visual Basic as usual.
I'm unsure whether you'll be able to create ASP.NET Core / MVC 6 applications using VB.NET, since I havn't been able to find any sources confirming this. I reckon, though, that it should be possible, since VB.NET works perfectly fine with .NET Core.

How to create an ASP.NET Web Forms Application in .NET v3.5

I am trying to add a new Web Forms project to an existing solution. However, when I choose .NET 3.5, the only option available to me is ASP.NET Empty Web Application, there is no choice of creating a WebForms app.
If I choose > v4.5 then it gives me the option.
How should a WebForms application be created under .NET 3.5?
Thanks
With 2015 you can create the ASP.NET Empty project, then use "Add Web Form" from the project menu.
Another option is to install VS 2013. I use VS 2013 through 2017 on the same computer, and the latest version that lets me create a .NET 3.5 WebForms project is 2013. The project template is under "Visual Studio 2012" group under ASP.NET projects.
Its possible that there is a project template pack for 2015/2017 that will give you WebForms and 3.5 but my quick search doesn't show anything.

Is it possible to force Visual Studio 2010 to use Visual Basic 10?

To reproduce the error I'm getting:
Create a new Visual Studio 2010 ASP.NET web site in Visual Basic, targeting .NET 2.0
Type "Public Property Test As String"
Observe "Visual Basic 9.0 does not support auto-implemented properties." error
Visual Studio 2010 is happy to use VB 10 against .NET 2.0-targeted Windows Forms applications, this only appears to be an issue with ASP.NET.
Is there a way to force Visual Studio 2010 to use VB 10 when targeting .NET 2.0?
No. A Web Site project is one that compiles within ASP.NET at runtime - as such, you've chosen to ask ASP.NET to run it as a .NET 2.0 project, so it will use the .NET 2.0 vbc Visual Basic compiler that's part of .NET. That compiler has no knowledge of VB 10, and so you're rightly being warned that it will not work.
The reason it can work for other project types is because the compilation is happening using a later compiler (usually the one built into Visual Studio).

Which versions of ASP.NET gets installed with Visual Studio 2010?

Does Visual Studio 2010 install of ASP.NET 2.0, ASP.NET 3.5, and ASP.NET 4.0?
Thanks in advance.
VS2010 comes with asp.net 2.0,3.5 and 4.0.
So if you have an existing asp.net 2.0 site for example then you can open and run this in vs2010 (vs 2010 will prompt you when you click the original solution that in order to run in vs2010 you need to upgrade the solution,this is all very straight forward). Similarly if you have an existing asp.net 3.5 site.
Also if you wish to start creating a new asp.net site and wish to use the 2.0 framework or 3.5 etc rather than the 4.0 framework then you can just select the desired version.

Resources