Category : nuget

Net core project. I have some nuget packages in azure artifact. In Dockerfile I am trying to consume them as below. FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build WORKDIR /app ENV ASPNETCORE_URLS=http://+:80 EXPOSE 80 # The Personal Access Token arg ARG PAT # Set environment variables ENV NUGET_CREDENTIALPROVIDER_SESSIONTOKENCACHE_ENABLED true ENV VSS_NUGET_EXTERNAL_FEED_ENDPOINTS ‘{"endpointCredentials":[{"endpoint":"https://myorg.pkgs.visualstudio.com/1234-c281-4ddc-952e-83e5a37a1c66/_packaging/mybusiness/nuget/v3/index.json","username":"USERNAME","password":"’${PAT}’"}]}’ # Get and install the Artifact ..

Read more

In our Azure DevOps Build Pipelines we use a Service Connection for NuGet Restore like so: – task: [email protected] inputs: command: ‘restore’ feedsToUse: ‘config’ nugetConfigPath: ‘nuget.config’ externalFeedCredentials: ‘Our NuGet Service Connection’ Is it possible to use the credentials from the Service Connection in a Docker Build? I read this documentation on Managing NuGet Credentials in ..

Read more

When I try to run dotnet restore as a RUN instruction of a Dockerfile while building it, I get the following errors: /src/Anonymized.Tests/Anonymized.Tests.csproj : error NU3028: Package ‘Microsoft.Win32.SystemEvents 5.0.0’ from source ‘https://api.nuget.org/v3/index.json’: The author primary signature’s timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain [/src/Anonymized.sln] /src/Anonymized.Tests/Anonymized.Tests.csproj : error NU3037: Package ..

Read more

While doing my docker build on a Dotnet Core project I got the following error on all my Nugets: 80.19 /app/GradingTool.Tests/GradingTool.Tests.csproj : error NU3028: Package ‘Microsoft.EntityFrameworkCore 5.0.0’ from source ‘https://api.nuget.org/v3/index.json’: The author primary signature’s timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain [/app/GradingTool.sln] #12 80.20 /app/GradingTool.Tests/GradingTool.Tests.csproj : error NU3037: Package ..

Read more

I’m building a Windows image, and I’m trying to install chocolatey. However in the install step for Chocolatey I am getting a download timeout trying to run the command. Here the Dockerfile, trying to install chocolatey with powershell. FROM mcr.microsoft.com/dotnet/framework/sdk:4.8-20210112-windowsservercore-ltsc2019 SHELL ["powershell", "-Command"] RUN New-Item -ItemType directory -Path $Env:SOME_USER_HOME; #Override the action to take in ..

Read more