Closed Nico-1987 closed 1 month ago
Related change: https://github.com/NuGet/Home/issues/9180
The NuGetCommand task is soft-deprecated and only takes critical fixes.
Instead, we recommend using the NuGetAuthenticate@1 task followed by another task which runs NuGet, for example:
- task: NuGetToolInstaller@1
displayName: Install Latest NuGet Installer
inputs:
versionSpec: 6.10.*
- task: NuGetAuthenticate@1
- powershell: nuget restore ${{ parameters.Solution }} -NoHttpCache
New issue checklist
Task name
NuGetCommand
Task version
2
Issue Description
After upgrading to NuGet 6.10, the NuGetCommand task is throwing a warning when using argument NoCache:true
This argument has been renamed in NuGet, so this is by design, however i currently have no way to suppress this warning in my Azure DevOps pipelines. Please enhance the task to pass the new NoHttpCache argument instead (when version > 6.10 is used)
Here is a sample
This will result in this warning in the output
"NoCache is deprecated and has been renamed to NoHttpCache. Please use NoHttpCache instead."
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
Azure DevOps Server 2022 Update 1
Operation system
Windows 10
Relevant log output
Full task logs with system.debug enabled
na
Repro steps