This project references NuGet package(s) that are missing on this computer

 

时间 2015-01-11 06:00:00 All About .Net

原文 http://www.ozkary.com/2015/01/this-project-references-nuget-packages.html

主题 NuGet

This project references NuGet package(s) that are missing on this computer . Enable NuGet Package Restore to download them. 

When getting this error, Visual Studio indicates that a NuGet package is missing from your project references.  If you take a look at the project->references node, you will probably see that there are some missing libraries that have been added to the project via a NuGet package installation, and your system does not have the package.  These files may even be the core .Net libraries like System, System.Xml etc.

To address this problem, we can just follow these steps:

  • Select Solution Explorer
  • Right click on the Solution Name
  • Click Enable NuGet Package Restore

This tells Visual Studio that whenever it finds a missing package, it needs to download it. After this has been enabled, we need to reload each project that has the missing references. This can be done by closing and opening the solution which will reload all the projects or just unloading and reloading each specific project (right click on the project name to see the unload project option).

Another area to make sure that the Package restore feature is enabled is to look for the . nuget folder in the solution’s directory. There should be a Nuget.targets file which manages the restore.

I hope this helps.

转载于:https://www.cnblogs.com/atuo/p/5129400.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值