When using a custom NuGet server and you’ve added a NuGet.config file to the solution, you’ll need to add the following line to the default Dockerfile build by Visual Studio to allow the container to be built.
COPY ["NuGet.config", "/src/"]
This should be placed before the “RUN dotnet restore …” line.
Company Reviews