NuGet add reference error while installing packages

前端 未结 20 907
太阳男子
太阳男子 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
    

提交回复
热议问题