When you open a project in .net core, Visual Studio may not open it, prompting the following error.
D:\workshop\Github\Ocelot\src\Ocelot\Ocelot.csproj : error : Project file is incomplete. Expected imports are missing.
D:\workshop\Github\Ocelot\test\Ocelot.UnitTests\Ocelot.UnitTests.csproj : error : Project file is incomplete. Expected imports are missing.
D:\workshop\Github\Ocelot\test\Ocelot.AcceptanceTests\Ocelot.AcceptanceTests.csproj : error : Project file is incomplete. Expected imports are missing.
D:\workshop\Github\Ocelot\test\Ocelot.ManualTest\Ocelot.ManualTest.csproj : error : Project file is incomplete. Expected imports are missing.
D:\workshop\Github\Ocelot\test\Ocelot.Benchmarks\Ocelot.Benchmarks.csproj : error : Project file is incomplete. Expected imports are missing.
D:\workshop\Github\Ocelot\test\Ocelot.IntegrationTests\Ocelot.IntegrationTests.csproj : error : Project file is incomplete. Expected imports are missing.
D:\workshop\Github\Ocelot\src\Ocelot\Ocelot.csproj : error : Project file is incomplete. Expected imports are missing.
The reason for this error is that the project specifies the SDK version of the project via global.json, for example, Ocelot’s global.json specifies 2.1.301
{
“projects”: [ “src”, “test” ],
“sdk”: {
“version”: “2.1.301”
}
}
I don’t have this version of SDK installed on my machine, the solution is to install this version of SDK.
Similar Posts:
- Gin does not contain package github.com/gin-gonic/gin/json
- [Solved] VS Error: No project was found. Change the current working directory or use the –project option.
- This project references NuGet package(s) that are missing on this computer. Enable NuGet Package …
- [How to Solve] Xcode:No such module SwiftyJSON
- Local workspace file (‘angular.json’) could not be found.
- When installing gulp, you are always prompted that you are missing modules (cannot find module ‘gulp load plugins’)
- Solve the problem of error reporting in. Net native compilation containing sqlcihper package
- VS Net Core Project Exception Resolution – project.assets.json’ not found. Run a NuGet package restore to generate this…
- Git Push Github ERROR: Permission to xxx.git denied to user
- git Please tell me who you are [How to Solve]