Base solution for your next web application
Open Closed

Issue with new ASP.NET Core project, missing packages #1640


User avatar
0
joe704la created

I downloaded the new Core version of ASP.NET Zero and it's not restoring the packages correctly. I have attached a screen shot of an example of what I am talking about. Its has done this for all the projects.

When I try to Update-Database through the Package manager it just says EntityFramework is not installed in the EntityFramework project. I am sure this is because it isn't restoring packages correctly.

Has anyone had the same issues? And if so have you figured out why this is happening?


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Which version of Visual Studio do you use ? Try with Visual Studio 2015 Update 3.

    In order to update database follow below steps after a successful build.

    1. open command line
    2. navigate to EntityFramework project folder which contains project.json file in command line.
    3. Run this command "dotnet ef database update" (For details <a class="postlink" href="https://github.com/mrahhal/Migrator.EF6">https://github.com/mrahhal/Migrator.EF6</a>)
  • User Avatar
    0
    joe704la created

    I have Visual Studio 2015 update 3.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you try to close and reopen your visual studio ? This kind of staff happens with AspNet Core project because of new project structure.

    You can also modify (put a space for example) to project.json to re-install nuget packages.

  • User Avatar
    0
    joe704la created

    Good call, that worked. Thanks