NuGet add reference error while installing packages

前端 未结 20 896
太阳男子
太阳男子 2020-12-09 07:27

I am not able to install any package by Nuget. For example when I want install entity framework I receive following error:

install-package EntityFramework
Su         


        
相关标签:
20条回答
  • 2020-12-09 08:05

    In my case, specifying the desidered version has solved the problem. That's probably because different projects in the same solution reference different version of the same Package. In that case, Nuget doesn't know the desidered version, hence the exception.

    Just use this syntax:

    Install-Package XXXX -Version A.B.C.D
    
    0 讨论(0)
  • 2020-12-09 08:06

    After updating my Visual Studio 2015 nuget stopped working.

    After reading the posted solutions I founded that's a know bug, see http://blog.nuget.org/20150226/nuget-3.0-beta2.html

    From Visual Studio I unistalled nuget extension, closed visual studio , downloaded and installed latest nuget version from https://dist.nuget.org/index.html

    It worked

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