Nuget error “Object reference not set to an instance of an object” while installing Entityframework 7 from Package Manager Console in VS2015

后端 未结 11 1299
时光取名叫无心
时光取名叫无心 2021-02-05 05:15

I am trying to build a sample application using EF7 and mvc 6 in visual studio 2015 pre release.

While installing both EF7 and MVC6 using package manager console getting

相关标签:
11条回答
  • 2021-02-05 05:55

    For me, after consolidating nugets in the different projects in the solution (through the Consolidate tab), it started to work.

    0 讨论(0)
  • 2021-02-05 05:59

    I have solved this problem, by disabling the "https://api.nuget.org/v3/" from the package source, in order to do this, Choose Tools > Nuget Package Manager > Package Source

    And other thing I did is added myget package source "https://www.myget.org/F/aspnetvnext/api/v2/"

    Following the steps Choose Tools > Nuget Package Manager > Package Source > Click add on top of the window and add the myget package source.

    0 讨论(0)
  • 2021-02-05 06:00

    My problem solved by activation Microsoft and .NET source , and use it to get package.

    0 讨论(0)
  • 2021-02-05 06:00

    What I had is that I was disconnected from the internet while trying to install any package.

    Not sure if this covers everyting, but I have to say nuget and the package manager console is a great source for headaches.

    0 讨论(0)
  • 2021-02-05 06:06

    I had a similar issue in Visual Studio 2015 Community Edition.

    Created a simple ASP.NET MVC 5 default project that I hosted on Azure. I was working through the project and when I tried to load up the NuGet GUI but kept getting the "Object Reference..." error.

    I restarted Visual Studio in Administrator mode (right-clicked Visual Studio and started in Administrator mode) which resolved the problem.

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