Our project references packages in our private artifact source in Azure DevOps. When building the project in Azure DevOps the dotnet restore
completes fine but dotnet build
also tries to restore the packages and fails with
Unable to load the service index for source https://myazdevops.pkgs.visualstudio.com/_packaging/OurPackages/nuget/v3/index.json
The work around is adding --no-restore
to both the dotnet build
and dotnet publish
tasks.
Is there some way to have the build and publish start working without there parameters?