[英]Azure DevOps pipeline fails at Restore - Test project is not compatible with netcoreapp2.2 Project supports: netcoreapp3.0
I have a solution with 2 projects:我有两个项目的解决方案:
And I created Azure DevOps pipeline which builds and packs this library for DevOps private Nuget feed.我创建了 Azure DevOps 管道,它为 DevOps 私有 Nuget 提要构建和打包这个库。 The pipeline contains the following steps:
管道包含以下步骤:
But the process fails at Restore packages step with:但该过程在恢复包步骤失败:
error NU1201: Project [Test Project] is not compatible with netcoreapp2.2 (.NETCoreApp,Version=v2.2).
错误 NU1201:项目 [Test Project] 与 netcoreapp2.2 (.NETCoreApp,Version=v2.2) 不兼容。 Project [Test Project] supports: netcoreapp3.0 (.NETCoreApp,Version=v3.0)
项目【测试项目】支持:netcoreapp3.0 (.NETCoreApp,Version=v3.0)
So how can I set up CI/CD for.Net Core 3.0?那么如何为 .Net Core 3.0 设置 CI/CD?
I DO NOT use YAML - I hate that thing.我不使用 YAML - 我讨厌那个东西。
I tried "Use Nuget" to force the pipeline to use the latest Nuget.我尝试“使用 Nuget”来强制管道使用最新的 Nuget。 I also tried to for it using the latest.Net Core 3.1.x.
我还尝试使用最新的.Net Core 3.1.x。 All this doesn't help.
这一切都无济于事。
What helped was the re-creation of the test project.帮助的是重新创建测试项目。 Now the pipeline works!
现在管道工作了!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.