NuGet add reference error while installing packages

前端 未结 20 906
太阳男子
太阳男子 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 07:41

    Here is what solved it for me: VS2012 with EF6

    I found my answer here: http://richardschneider.net/blog/wordpress/?p=21

    From the VS command prompt, run the following command:

    regsvr32 "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\VsLangproj.olb"
    

    After that, go to Package manager console and run the following:

    Install-Package EntityFramework -Version 6.1.3
    

提交回复
热议问题