Closed Daniel-Khodabakhsh closed 5 years ago
@infin8x can you help with this issue?
Assigning to @elbatk for triage
Did some further investigation and found that this is actually a NuGet/dotnet-cli issue. Was able to locally recreate the exact same issue Azure DevOps was reporting. I created bug https://github.com/NuGet/Home/issues/8183 with more details.
I found a fix for this, will create a pull request.
It failed to build in 2.238.1 again.
Required Information
Type: Bug
Task Name: DotNetCoreCLI@2
Environment
Issue Description
In Azure DevOps, DotNetCoreCLI@2 restore cannot restore my custom SDK in my company's NuGet stream.
This issue does not occur for nuget packages I reference via
<PackageReference />
, nor does it occur in Visual Studio, nor does it occur when I run dotnet restore locally (had to manually install https://github.com/Microsoft/artifacts-credprovider though).The error I'm getting in Azure DevOps is:
The SDK is added via App.csproj's tag:
The version is specified in global.json. The issue still occurs if I specify it in the tag.
The Azure DevOps task I use is:
My NuGet.config located at the repo root is: