【发布时间】:2022-08-05 12:24:19
【问题描述】:
当我尝试在 Azure Devops 中构建应用程序时,我一直遇到错误
The framework \'Microsoft.NETCore.App\', version \'3.1.0\' (x64) was not found.
在执行 ef 迁移时,即使它完全是 net6(ef 核心的 nuget 包也是 6.0)。
然而,有一个代理已被 dotnet 3.1 sdk 污染,它会生成以下消息:
The Entity Framework tools version \'3.1.0\' is older than that of the runtime \'6.0.5\'. Update the tools for the latest features and bug fixes. See https://aka.ms/AAc1fbw for more information.
这很奇怪,因为我在使用以下 dotnet-tools.json 运行命令之前安装了 ef 工具
{
\"version\": 1,
\"isRoot\": true,
\"tools\": {
\"dotnet-ef\": {
\"version\": \"6.0.6\",
\"commands\": [
\"dotnet-ef\"
]
}
}
}
-
在代理上安装 .NET 6 SDK
-
.NET SDK 通过另一个步骤预先安装
标签: c# entity-framework azure-pipelines