Question, Bug, or Feature?
Type: Bug
Enter Task Name: NuGetCommand
Server - Azure Pipelines
Agent - Private:
It appears that NuGetCommand version 2.167.2 was working for me around 7:14 PM (2020-04-07T19:14:00-04:00) and stopped working with NuGetCommand version 2.167.4 around 7:55 PM (2020-04-07T19:55:00-04:00)

raw_logs_from_build_id_1114_logs_48.zip
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Yes, I troubleshooted (troubleshot?, troubleshotted?) and collected diagnostic logs.
##[error]Invalid Version: null
Seeing the same. I downgraded our Nuget task to Version 1* as we weren't using anything fancy in version 2* and it's back to working.

Also seeing the same issue with the same temporary resolution working for us.
In our pipeline we were also running NuGetToolInstaller@1 and found we needed to disable this task completely as even with NuGetRestore@1 downgraded to 1.* we continued to receive the same error.
We have seen the same issue, that is ##[error]Invalid Version: null
in yaml pipeline using nugetcommand@2 , change task version to nugetcommand@1 has resolved the issue.
also having this issue, had to disable the "Use Nuget" step altogether to get things to build and deploy properly. Judging by the activity here i'm guessing MS must have introduced some sort of breaking change involving nuget?
Looks like a rollback is about to occur
https://status.dev.azure.com/_event/183168284
Apologies for this disruption. This change has been rolled back.
@sl-NZ and @garrettloy - I totally understand why you downgraded to 1.* (good find!), but I would recommend you take your build back up to 2.*.
The reason 1.* was unaffected is that we didn't bother trying to fix it for the Visual Studio breaking change because usage was so low.
@johnterickson thank you for replying, have just done the same 馃憤 , it would be good to have visibility on recent changes to specific task via the link on the task from azure devops
@johnterickson Would be fascinating to hear an RCA on this. Do you guys utilize ringed deployments? Just curious how something like this made it into production.
@im2cre8iv I believe we will have a public RCA on this, but the short version is that we had to rush through normal gates because of https://status.dev.azure.com/_event/182998791 and the manual testing we had done that we thought would cover this did not (still unsure why). Needless to say, this was a mistake.