dotnet new -i MSBuild.SDK.SystemWeb.Templatesdotnet new systemwebor
dotnet new systemwebfullTo select the VB.Net version use the flag -lang VB
e.g.
dotnet new systemweb -lang VBdotnet new systemwebrazorlibTo select the VB.Net version use the flag -lang VB
e.g.
dotnet new systemwebrazorlib -lang VBAlternatively use the Visual Studio Add Project dialog.
You need to have enabled the Preview feature to show .NET CLI Templates in Visual Studio and have Visual Studio 16.8 Preview 2 or higher.
The ability to use templates is built into VS2022.
You can find the new templates easily by selecting System.Web from the Project Type dropdown.
For more information see
