NuGet task 2.167.4 breaks with `##[error]Invalid Version: null`
See original GitHub issueRequired Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature? Bug Enter Task Name: NuGet 2.167.4
Environment
Azure Pipelines, Windows Hosted Agents: https://dev.azure.com/monacotools/Monaco/_build/results?buildId=71481&view=logs&j=ef19874c-dd89-559a-7822-f5a414b01ba4&t=4896892c-c3d0-5a70-c160-70c47766e990&l=5
Issue Description
NuGet v2.167.4 breaks our build when restoring NuGet packages from a private source:
It worked yesterday when it was on v2.167.2:
Here’s the task usage: https://github.com/microsoft/vscode/blob/master/build/azure-pipelines/win32/product-build-win32.yml#L224:L231
Task logs
2020-04-08T09:20:38.6561215Z ##[section]Starting: Install ESRPClient.exe
2020-04-08T09:20:38.6694108Z ==============================================================================
2020-04-08T09:20:38.6694896Z Task : NuGet
2020-04-08T09:20:38.6695872Z Description : Restore, pack, or push NuGet packages, or run a NuGet command. Supports NuGet.org and authenticated feeds like Azure Artifacts and MyGet. Uses NuGet.exe and works with .NET Framework apps. For .NET Core and .NET Standard apps, use the .NET Core task.
2020-04-08T09:20:38.6696854Z Version : 2.167.4
2020-04-08T09:20:38.6697358Z Author : Microsoft Corporation
2020-04-08T09:20:38.6697991Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/nuget
2020-04-08T09:20:38.6698682Z ==============================================================================
2020-04-08T09:20:39.4512022Z Caching tool: NuGet 4.1.0 x64
2020-04-08T09:20:39.4962154Z Found tool in cache: NuGet 4.1.0 x64
2020-04-08T09:20:39.5017267Z Resolved from tool cache: 4.1.0
2020-04-08T09:20:39.5018685Z Using version: 4.1.0
2020-04-08T09:20:39.5464301Z ##[error]Invalid Version: null
2020-04-08T09:20:39.6523428Z ##[section]Finishing: Install ESRPClient.exe
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (2 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@apluche As mentioned in my last comment v2.167.5 fixed it for us.
Since the original issue is fixed, I’m closing this out. Please feel free to reach out with any questions or concerns!