aspnetcore: "Project file is incomplete. Expected imports are missing." - for project MonoSanityClient

Cloned the repo at commit 9fa187d63efbc05eb35e9a064b39335f01c1ab27

When loading the Blazor.SLN in VS I get this error: C:\sources\Blazor\samples\MonoSanityClient\MonoSanityClient.csproj : error : Project file is incomplete. Expected imports are missing.

Am I missing something? 😃 Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 38 (15 by maintainers)

Most upvoted comments

@AlanJacobsSandnet (and others who might run into this) in my case, the global.json was not in the directory with the .sln, but one layer above. It referenced .NET Core version 2.1.300. I ran dotnet --list-sdks to see which SDKs I actually have, and changed the file to 2.1.403. That fixed various weird errors in VS.

I’ll mark this as closed since I think it’s OK, but please let me know and/or reopen if there still appears to be a problem later.