zoukankan      html  css  js  c++  java
  • 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.

  • 相关阅读:
    页面边距设置
    事件
    Ora-00906:missing left parenthesis
    Oracle
    数据转移:把数据从一个表转到另一个表
    修改字段默认值
    数据升级包
    触发器
    复制数据库数据
    VMware vSphere Client
  • 原文地址:https://www.cnblogs.com/atuo/p/5129400.html
Copyright © 2011-2022 走看看