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.

  • 相关阅读:
    UVA1585
    暑期第二场-1
    UVA11582
    UVA10006
    HDU1005
    HDU2035
    POJ:2492-Bug's Life(二分图的判定)
    Codeforces:68A-Irrational problem(暴力大法好)
    Codeforces Round #456 (Div. 2) B. New Year's Eve
    Codeforces Round #456 (Div. 2) A. Tricky Alchemy
  • 原文地址:https://www.cnblogs.com/atuo/p/5129400.html
Copyright © 2011-2022 走看看