NuGetToolInstallerV1 cannot download preview releases
See original GitHub issueRequired Information
Question, Bug, or Feature?
Type: Bug
Enter Task Name: NuGetToolInstallerV1
Environment
Azure Pipeline - Microsoft-hosted agent
Running on the windows pool windows-2019
Issue Description
Trying to install the nuget preview with NuGetToolInstallerV1 to workaround an issue with nuget and the credentials manager (https://github.com/microsoft/artifacts-credprovider/issues/91)
Task definition
- task: NuGetToolInstaller@1
inputs:
versionSpec: '5.5.0-preview1'
checkLatest: true
This was tried with and without the checkLatest flag.
According to the docs here here it should find available version listed in this json file but it seems it cannot find it.
Task logs
##[section]Starting: NuGetToolInstaller
==============================================================================
Task : NuGet tool installer
Description : Acquires a specific version of NuGet from the internet or the tools cache and adds it to the PATH. Use this task to change the version of NuGet used in the NuGet tasks.
Version : 1.161.0
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/tool/nuget
==============================================================================
##[error]No version was found which matches the input 5.5.0-preview1
ERR:Tool install failed: NuGet
##[error]The available versions are: 5.4.0; 5.3.1; 5.3.0; 5.2.0; 5.1.0; 5.0.2; 5.0.0; 4.9.4; 4.9.3; 4.9.2; 4.9.1; 4.8.2; 4.8.1; 4.7.3; 4.7.2; 4.7.1; 4.7.0; 4.6.4; 4.6.3; 4.6.2; 4.6.1; 4.6.0; 4.6.0-preview3; 4.5.3; 4.5.2; 4.5.1; 4.5.0; 4.4.3; 4.4.2; 4.4.1; 4.4.0; 4.4.0-preview3; 4.3.1; 4.3.0; 4.3.0-preview3; 4.3.0-preview1; 4.1.0; 4.0.0; 3.5.0; 3.4.4; 3.3.0; 3.2.0; 2.8.6
##[section]Finishing: NuGetToolInstaller
[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution]
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (1 by maintainers)
Hi! As far as I know this is still an issue and has not been resolved. Using PowerShell doesn’t seem like it should be “the solution” to people having to wait for NUGET versions to get out of preview? This is still happening with NUGET 6.0 on the azure cloud, and we’ve had to revert to .NET 5.0 because we’re getting errors thrown trying to use the preview.
It would be nice to have a “toggle preview” option, just like how the .net installer has “includePreviewVersions: true”, which would alleviate this problem.