Azure Pipelines DotNetCoreCLI - .Net Core SDK 生命周期结束

发布于 2025-01-19 06:47:32 字数 923 浏览 4 评论 0原文

我在 Azure CI 管道中收到错误。尝试运行 DotNetCoreCLI restore 任务时。

已经报废了几个小时的网络无济于事,相关问题没有解决方案可以帮助我理解问题。

基本上,我们已经在存储库中添加了一个新项目。该项目需要运行 dotnet Restore 命令来创建 project.assets.json 文件。

请参阅下面的脚本和每个任务的日志快照。

脚本:

在此处输入图像描述

UseDotNet 快照:

<图片src="https://i.sstatic.net/j5GIp.png" alt="在此处输入图像描述">

DotNetCoreCLI 错误消息:

信息:.NET Core SDK/runtime 2.2 3.0 和 3.0 现已终止生命周期 (EOL),并已从所有托管代理中删除。如果您在托管代理上使用这些 SDK/运行时,请升级到非 EOL 的较新版本,或者使用 UseDotNet 任务来安装所需的版本。

##[错误]没有文件与搜索模式匹配。

信息:Azure Pipelines 托管代理已更新,现在包含 .Net 5.x SDK/运行时以及当前为 lts 的旧版 .Net Core 版本。

已经环顾四周了。似乎没有什么可以帮助我理解这里出了什么问题。

任何帮助将不胜感激。

I am receiving an error in Azure CI pipelines. While trying to run a DotNetCoreCLI restore task.

Been scrapping the net for hours to no avail, no solution from related questions have helped me understand the problem.

Basically, we have added a new project to a repo. This project requires a dotnet restore command to be run to create the project.assets.json file.

Please see script below and log snapshot for each task.

Script:

enter image description here

UseDotNet snapshot:

enter image description here

DotNetCoreCLI error message:

Info: .NET Core SDK/runtime 2.2 and 3.0 are now End of Life(EOL) and have been removed from all hosted agents. If you're using these SDK/runtimes on hosted agents, kindly upgrade to newer versions which are not EOL, or else use UseDotNet task to install the required version.

##[error]No files matched the search pattern.

Info: Azure Pipelines hosted agents have been updated and now contain .Net 5.x SDK/Runtime along with the older .Net Core version which are currently lts.

Have looked around quite a bit. Nothing seems to help me understand what is going wrong here.

Any assistance would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

你的心境我的脸 2025-01-26 06:47:33

事实证明,该问题在文件夹位置中被引用为$(utitilityLibrary)

我花了一些时间来弄清楚,因为我无法访问实际变量集。

Turns out the issue was in the folder location referenced as $(UtilityLibrary).

Took me a while to figure out as I didn't have access to the actual variable set.

南风起 2025-01-26 06:47:33

请始终检查解决方案 proj 的路径

Please always check the path of the solution , proj

一生独一 2025-01-26 06:47:33

信息消息是由.net版本不支持的事实引起的 https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core

info message is caused by the fact the .NET version is out of support https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文