Nuget versioning issue with package restore

前端 未结 6 1085
走了就别回头了
走了就别回头了 2021-01-30 15:47

I am unable to install a package (using package restore) due to some kind of versioning issue with Nuget. Here are the steps I took:

build project: error : The schema ve

相关标签:
6条回答
  • 2021-01-30 16:26

    I faced to this problem and I checked all answers that were this page and at the end my problem did not solved. After lot of search on web I could update my nuget from original site

    http://docs.nuget.org/docs/start-here/installing-nuget

    and for example for vs2010 :

    http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c

    At this site select your version of VS and then update it .

    Note : before installing nuget,close all Visual Studios and after install,Open your project. Thanks

    0 讨论(0)
  • 2021-01-30 16:38

    The following worked for me in Visual Studio 2012:

    • Run VS 2012 as Administrator
    • Click Tools -- Extensions and Updates
    • In the left nav, Updates -- Visual Studio Gallery
    • Click Update on NuGet Package Manager
    • Install the update
    • Restart Visual Studio
    0 讨论(0)
  • 2021-01-30 16:43

    It looks like problem in nuget command line tool. When you enable 'Nuget package restore' feature it adds .nuget folder to you solution with nuget.exe. And when you compile project this tool is using to download missing packages, not VS extension is used here. So try update this tool from command line:

    cd .nuget
    nuget.exe update -Self
    

    Procedure screenshot:

    enter image description here

    0 讨论(0)
  • 2021-01-30 16:44

    This above did not work for me, completely. There is one last step that is IMPORTANT to note. After downloading the latest nuget version, you may notice that the same error prints in the output window. The reason is due to the .nuget folder containing a NuGet.exe which specifies a version number.

    The solution (for me and perhaps to those of your that did not resolve your issue with the above directions), is to

    1. Delete the .nuget folder from you solution.

    2. Right click your web project and click Enable Nuget Restore.

    3. The directions above should cause a NEW .nuget folder to be added, this time the NuGet.exe should be the newest version of nuget that you downloaded.

    0 讨论(0)
  • 2021-01-30 16:45

    None of the offered solutions worked for me (Visual Studio 2013, Nuget Package Manager Version 2.8.5).

    I had same error but it was saying I had version 2.5.4.

    I fixed it by going to Tools > Nuget Manager Console > Nuget Package Console. This open's up a command line window. At the top of the window was a prompt to download missing packages for my project.

    Pressed the download button and errors went away upon build.

    0 讨论(0)
  • 2021-01-30 16:49

    I was facing the same issue. I resolved it by selecting Tools on VS 2010 Menu --> Library Package Manager --> Package Manager Settings --> Check "Automatically check for updates". After that I restarted VS and was prompted for Nuget Update Installation. Once the update was installed, the Nuget package, HTTP Client in my case, got installed smoothly.

    0 讨论(0)
提交回复
热议问题