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)
-
0
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.
- open command line
- navigate to EntityFramework project folder which contains project.json file in command line.
- 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>)
-
0
I have Visual Studio 2015 update 3.
-
0
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.
-
0
Good call, that worked. Thanks