0

I have migrated the project from Dot.Net-Framework 4.7.2 to Asp.Net-Core 3.1 with VB.NET language. I have checked in Microsoft link below, there is no CLI Command for VB.NET in Asp.Net Core templates. They mentioned only C# language for ASP.NET Core

https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-new

enter image description here

Kindly let me know if there is any way to create a ASP.NET Core Project in "VB.NET"

1
  • dotnet new webapp --help Commented Jul 29, 2021 at 7:25

2 Answers 2

0

As far as I know, asp.net core couldn't create the MVC vb.net project. You could use dotnet new --list to see the result:

enter image description here

Besides, according to this github issue, ASP.NET Core Doesn't provide a razor syntax that supports VB.NET.

The workaround is using the custom library like Vazor and ZML to design MVC views and Razor Pages.

More details, you could refer to this github issue.

Sign up to request clarification or add additional context in comments.

2 Comments

devblogs.microsoft.com/vbteam/… Then what about the link ?
This is the support planned for .NET 5.0, something like road map. The VB.NET still don't support web api and MVC now.
0

This question is a bit older, to be sure, but the good news is that today there IS a way to build ASP.NET Core applications in VB.NET.

For the past few days I've been working with Vazor, found here and here. I've found it to be remarkable. It's a very clever solution to a long-standing problem.

The author also has plans to enable Blazor apps in VB.NET projects.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.