Related Tags:
C# C# (pronounced "C-sharp") is an object-oriented programming language from Microsoft that aims to combine the computing power of C++ with the programming ease of Visual Basic. C# is based on C++ and contains features similar to those of Java. Learn More, Microsoft Visual Studio Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop computer programs for Microsoft Windows, as well as web sites, web apps, web services and mobile apps. Learn More, ASP.NET MVC The ASP.NET MVC framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentication. The MVC framework is defined in the System.Web.Mvc assembly. Learn More, Visual Studio 2019 (Community Edition) A fully-featured, extensible, free IDE for creating modern applications for Android, iOS, Windows, as well as web applications and cloud services. Learn More,

NuGet Package restore failed/build failed for my project on new visual studio instance

Description:I have just installed the latest visual studio 2019 (Community Edition) , just pull my project on a new machine which is working fine on another machine but now I am getting following error on some of the nuget packages.(I have checked that these packages are not downloaded)

Severity Code Description Project File Line Suppression State Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105

Posted by: | Posted on: Jun 15, 2021

1 answers

Replies

6

I had similar sort of problem when I had installed visual studio 2019 fresh instance and in my case the issue was with the package source that was not set properly due to fresh installation of visual studio, so for setting the package source for visual studio we need to go to

Tools > Options > NuGet Package Manager > Package Sources

and set following values:

Name: nuget.org
Source: https://api.nuget.org/v3/index.json


Replied by: | Replied on: Jul 15, 2021



Reply
×

Code block Hyperlink bold Quotes block Upload Images

Preview