I am trying to load the source code for ASP.NET Core MVC at https://github.com/aspnet/aspnetcore. However, when I cloned the project, checked out v3.0.0, and tried to open the solution in Visual Studio 2019 (v16.3.4), I got the following error for all the projects
Unable to locate the .NET Core SDK. Check that it is installed and that the version specified in global.json (if any) matches the installed version
I have ensured the .net core 3.0 sdk has been downloaded on my computer, and running dotnet --info yields the following data:
Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Looking in the .csproj file, they are all targeting
<TargetFramework>netcoreapp3.0</TargetFramework>
Additionally, I have ensured that the path to the SDK 'C:\Program Files\dotnet' is included in my PATH variable. I tried adding a global.json file specifying the sdk, but it didn't seem to make a difference.
Any idea what could be causing this issue?
Edit
Below is an example of the csproj file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>ASP.NET Core metadata.</Description>
<TargetFramework>netstandard2.0</TargetFramework>
<IsAspNetCoreApp>true</IsAspNetCoreApp>
<IsShippingPackage>true</IsShippingPackage>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageTags>aspnetcore</PackageTags>
</PropertyGroup>
</Project>



