ASP.NET Core 3.0 not showing on Visual Studio 2019

2020-02-08 22:11发布

I want to test the new Blazor server-side framework (aka Razor Components).

I installed Visual Studio 2019 RC, and then the .Net Core 3.0 preview 2, following this official tutorial.

After the install, I only see the ASP.NET Core 2.0 and the 2.1 on the "Create a new ASP.NET Core Web Application" page. The 3.0 is not showing up.

I started to mess around, trying to install other packages from this page, uninstalled and reinstalled Visual Studio 2019, updated to the .NET Core Preview 3, installed several times the x64 and x86 packages in different orders, copy/paste the .Net Core binaries to random folders and so on. Nothing works. The ASP.NET Core 3.0 does not show up.

Here is what my VS looks like when creating a project (the yellow message appeared latter after some messing around with the packages, so it is not the real problem):

enter image description here

Here is the output of the dotnet --list-sdks command:

enter image description here

EDIT

For some reason, I installed the Blazor VSIX package (the WebAssembly - not exactly what I want, but I installed it anyways) and now the ASP.NET Core 3.0 simply shows up. However, just for the blazor templates:

enter image description here

I don't understand. Is there anything obvious I'm missing?

11条回答
啃猪蹄的小仙女
2楼-- · 2020-02-08 22:16

I was not able to get .netcore 3.0 preview8 working on my Visual Studio Community Edition (version 16.2.3). I opted to uninstall .netcore 3.0 preview8 and I installed .netcore 3.0 preview7 instead. After insalling .netcore 3.0 preview7 In Visual Studio I checked use previews of the .NET Core SDK option that is in Tools -> Options -> Preview Features and I restarted it. That worked for me, but if someone have .netcore 3.0 preview8 already working, help will be appreciated it.

查看更多
Luminary・发光体
3楼-- · 2020-02-08 22:17

I've encountered the same problem on a Mac and found a solution to this issue. On visual studio update tab (Visual Studio -> check for updates) there is a option to change channel to "Preview". Switch to Preview

After that you can download necessary updates and go using .net core 3.0

now there is option to change SDK to 3.0

查看更多
甜甜的少女心
4楼-- · 2020-02-08 22:20

Tried to get .NET Core 3 (preview 8 in my case) to work in the release version of Visual Studio 2019 but ASP.NET Core 3.0 refused to show up in the "Create new ASP.NET Core web application" dialog.

What eventually worked was to install the Preview version of Visual Studio 2019.

I could have saved a few hours and a lot of hair if I had taken the warning text ".NET Core 3.0 should be used with the latest previews of Visual Studio." (https://dotnet.microsoft.com/download/dotnet-core/3.0) more literally...

查看更多
别忘想泡老子
5楼-- · 2020-02-08 22:22

In my case is because I did not installed Visual Studio 2019 with that feature. So just create a new project and type .net core. Then click on Install more tools and features:

enter image description here

Then add the following feature:

enter image description here

查看更多
混吃等死
6楼-- · 2020-02-08 22:28

It no longer works... again!

The SDK 3.0.100-preview8-013656 doesn't provide the ASP.Net Core 3.0 project template.

You have to uninstall it and install SDK 3.0.100-preview7-012821

https://dotnet.microsoft.com/download/dotnet-core/3.0

查看更多
萌系小妹纸
7楼-- · 2020-02-08 22:28

I have the same issue here after moving from Visual Studio 2019 Preview to Visual Studio 2019 RC.

This page seems to suggest that you need Preview to use .net Core 3.0 which is annoying.

https://dotnet.microsoft.com/download/dotnet-core/3.0

I looked up the difference between RC and Preview, and they pull builds from different channels (stable and preview).

The next thing I’m going to try is to go back to Preview to see if .Net Core 3.0 becomes visible again.

查看更多
登录 后发表回答