Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\app\aspnetapp.csproj]

后端 未结 13 1641
温柔的废话
温柔的废话 2021-02-12 01:45

https://github.com/dotnet/dotnet-docker-samples/tree/master/aspnetapp

Docker command docker build -t aspnetapp.

I am getting an error for docker bui

13条回答
  •  盖世英雄少女心
    2021-02-12 02:21

    I'm suprised no one said this already. This was caused by not having the latest sdk installed. In my case docker was looking for the file

    C:\Program Files\dotnet\sdk\3.1.302\NuGet.targets

    However this file did not exist on my machine instead I had a different minor version.

    C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets

    I'm sure they're away to get it working using an older version, but in my case I just updated the downloaded the latest sdk

提交回复
热议问题