question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NuGetToolInstallerV1 cannot download preview releases

See original GitHub issue

Required 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:closed
  • Created 4 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
FeroxFoxxocommented, Aug 20, 2021

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.

1reaction
FeroxFoxxocommented, Aug 20, 2021

It would be nice to have a “toggle preview” option, just like how the .net installer has “includePreviewVersions: true”, which would alleviate this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NuGetToolInstaller@1 - NuGet tool installer v1 task
When this boolean is set to true , the task always checks for and downloads the latest available version of NuGet.exe that satisfies...
Read more >
"NuGet tool installer" failed after update to DevOps Server ...
I've created a work-around with a Powershell script, downloading latest version of nuget.exe and restoring "manually". So, I do not use anymore the...
Read more >
Migrating Azure Pipelines Deployments to GitHub Actions
I have an Azure Pipeline build which builds NuGet packages on Windows, MacOS and Linux and a deployment job that then takes the...
Read more >
Preview Releases - Getting Started - Patch My PC Docs
Fixed a bug where a failure to download an icon would cause a product to fail to publish.
Read more >
Fixing issue related to Package is not compatible with ...
NETStandard,Version=v2.0) One or more packages are incompatible with .NETCoreApp,Version=v2.1. ... NuGet Tool Installer in VSTS/Azure DevOps.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found