I have installed VS 2019 today removing all other versions of VS (over come space crunch). Am trying to use nuget package manager but keep getting below exception. Nothing loads. I tried to install packages from console and ended up with same error as below. Any help would be appreciated.
PM> Install-Package Microsoft.Azure.Devices -Version 1.21.0 Install-Package : '' is not a valid version string. At line:1 char:1 + Install-Package Microsoft.Azure.Devices -Version 1.21.0 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Time Elapsed: 00:00:00.6338016

nuget.configfile in your solution? Besides, please check whether you can accessnuget.org. Right-click on your project-->Manage nuget packages and check whether you can see packages undernuget.orgpackage source. Second, clean nuget caches. Third, runInstall-Package Microsoft.Azure.Devices -Version 1.21.0under package manager console.C:\Users\xxx\AppData\Roaming\NuGet\NuGet.Config, then restart VS to test again.