【问题标题】:dotnet restore failing with docker Jenkins containerdotnet restore 使用 docker Jenkins 容器失败
【发布时间】:2020-03-06 21:23:26
【问题描述】:

我在 Jenkins/Jenkins:lts 基础映像上安装了 dotnet core 3.1 的本地 docker 映像。

为构建配置运行 shell 脚本 - 我收到错误

> dotnet restore *.sln

/usr/share/dotnet/sdk/3.1.102/NuGet.targets(123,5):错误:文件'/var/jenkins_home/.nuget/packages/microsoft.visualstudio.azure.containers.tools。 targets/1.9.10/microsoft.visualstudio.azure.containers.tools.targets.nuspec' 已经存在。

看看坐骑——它确实存在。我该怎么做才能解决这个问题?

【问题讨论】:

    标签: docker jenkins dotnetcorecli


    【解决方案1】:

    我认为您正在使用 Docker for Desktop for Windows。我也面临同样的问题。尝试将 Docker for Desktop for Windows 版本降级到 Docker Desktop Community 2.1.0.5。

    链接:https://docs.docker.com/docker-for-windows/release-notes/#docker-desktop-community-2105#docker-desktop-community-2105

    【讨论】:

    • 这太完美了。我卸载了最新的(2.2 ...)并放置了您建议的版本。任何想法是什么导致了 2.2+?
    猜你喜欢
    • 2018-03-08
    • 1970-01-01
    • 1970-01-01
    • 2020-07-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-25
    • 1970-01-01
    相关资源
    最近更新 更多