ASP.NET Core 3.0 not showing on Visual Studio 2019

前端 未结 17 1128
后悔当初
后悔当初 2020-12-08 12:41

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 o

相关标签:
17条回答
  • 2020-12-08 13:08

    I had the very same issue. I tried everything with no success

    I already had only x64 version of .NET Core SDK

    In addition i had to install x86 version too. That WORKED !!!

    0 讨论(0)
  • 2020-12-08 13:11

    I resolved it by installing

    dotnet-sdk-3.1.403-win-x86.exe dotnet-sdk-3.1.403-win-x64.exe Because the visual studio was taking the SDK from "C:\Program Files (x86)\dotnet\sdk" once you install "dotnet-sdk-3.1.403-win-x86.exe" there will one folder under the above directory. then no need to restart your PC.

    https://dotnet.microsoft.com/download/visual-studio-sdks?utm_source=getdotnetsdk&utm_medium=referral

    0 讨论(0)
  • 2020-12-08 13:13

    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:

    Then add the following feature:

    0 讨论(0)
  • 2020-12-08 13:13

    If your solution uses global.json and sdk:version isn't compatible with the target framework, it won't let you select it or it disappears from Target framework drop-down in your project's properties. You will need to update it to something like this:

    {
      "sdk": {
        "version": "3.1.0",
        "rollForward": "latestMinor"
      }
    }
    
    0 讨论(0)
  • 2020-12-08 13:14

    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...

    0 讨论(0)
  • I've had the same issue after installing .net core 3.1. This is how I resolved it.

    1. open powershell, type dotnet --version, it returns '2.2.300'
    2. go to 'programs and features', unistall .net core sdk 2.2.3.0
    3. run dotnet --version again, it returns '3.1.302' and in VS 2019 it shows '.net 3.1'
    0 讨论(0)
提交回复
热议问题