Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1. Microsoft.AspNetCore.Identity.Test C:\Program Files\dotnet\sdk\2.1.4\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference
我尝试构建 Microsoft 示例 https://github.com/aspnet/Identity/tree/dev/samples/IdentitySample.Mvc
我已经安装了Netcore SDK 2.1.4
dotnet --info
显示 2.0.5
为什么会报错?
最佳答案
dev 分支始终针对最新的夜间构建(2.1.0 预预览版)。使用其中一个标记,例如以 ASP.NET Core 2.0.0 为目标的 rel/2.0.0
分支。 https://github.com/aspnet/Identity/tree/rel/2.0.0/samples/IdentitySample.Mvc .
.NET Core 2.1 还没有出来。 Preview 1 预计在第一季度晚些时候发布,完整版本预计在第二季度发布。
关于asp.net - 当前的 .NET SDK 不支持面向 .NET Core 2.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48700060/