Search code examples
asp.net-corevisual-studio-2019

Cannot load project using .NET Core after installing Visual Studio 2019 version 16.4


I have installed the community Visual Studio 2019 version 16.4. and clone the solution of .NET Core 3.0 but no project loaded something wrong in the SDK. I have installed the SDK and runtime for 3.0 and 3.1, but still can not load any project.

enter image description here


Solution

  • You could fix the VS 2019 issue with the below steps

    • Run dotnet --list-sdks to know the exact version of the SDK installed
    • Modify the global.json file in the root folder of the project (For example,the project was showing 3.0.100 but you had 3.0.101 installed, you need to edit the same to point to that version and you could be able to reload the projects.

    References: