NuGet Package restore failed for project PROJECT: Unable to find version 2.0.0 of package ‘Microsoft.Net.Compilers’

Based on your error message looks like you are looking for a version that no longer exists and cannot tell which Package source you have selected. I feel like you are looking for version 2.0.0 which is not available in nuget.org repository. The latest one is 2.0.0-rc and it is pre release candidate. Please try … Read more

Team Foundation Service build fails on NuGet package restore

If someone still having this issue on tfs build server you need to go the following: Make sure all projects in solution you attempt to build have the latest Microsoft.Bcl.Build package (just update it in package manager). After build failed see all project (in tfs build log summary) that generate this error (“The build restored … Read more

Unauthorized nuget package from Visual Studio Team Services using asp.net core rc2

I know that it’s not exactly the same issue, but people may come across this one alongside as I did. I have installed VS Community 2019​ and yesterday I decided to remove the VS 2017, but after that, when I tried to restore the Nuget Packages made by the company, it started displaying an error … Read more

Local source of nuget packages doesn’t exist

The package source is probably defined in %appdata%\nuget\nuget.config. Edit this file in your favourite xml/text editor (VSCode perhaps?). You should see under a package sources element an add element that adds that file path. Comment out or delete that line. If it’s not in that file, try running dotnet restore –verbosity normal or just dotnet … Read more