Nuget can't resolve Entity Framework 7 dependency which is referenced in project

.net entity-framework entity-framework-core nuget visual-studio-2013

Question

I'm currently developing a piece of software as coursework for a class and I've elected to make a Windows App and Windows Phone App. Being hit by the knowledge that Entity Framework 6 wasn't supported almost made me give up, but I started a complicated workaround with a data server before finding EF7. I figured I'd give one of the releases from GitHub a try, so I downloaded it, built the Entity Framework 7 project successfully, referenced it successfully... And hey presto, my code files are suddenly perfectly happy with their DbSet and DbContext references.

There's only a small (Actually, it's pretty big) issue that since I just imported the references, I don't have the package manager commands for updating the database and all that jazz, so I go look about to see if I've got any files that seem like they'd work for fixing that, and find a bunch of NuGet files: NuGet files So I add the folder to NuGet's list of places it looks and it works as expected: Picture of package manager

The issue is, when I click install, I'm presented this:

Failed install: Missing dependency for Microsoft Dependency Injection DLL

However, this is in my references for the project:

Evidence of references

I did a bit of glancing and found that in my references, Dependency Injection seems to have no version listed unlike some of the other references, and I was thinking that might be something to do with the issue.

I've tried reimporting, rebuilding my copy of EF7, and nothing seems to work. I've no idea where to go from here and if someone could tell me what I've done wrong it'd be a great help! I've probably made some naïve mistake somewhere and I apologise in advance for that.

Thanks!

Accepted Answer

Since you did not link to where the Entity Framework 7 sources on GitHub are located I will assume it is the GitHub repository being used as part of ASP.NET vNext.

The NuGet pre-release NuGet packages for ASP.NET vNext are available on MyGet. If you add the following url to your existing package sources, and enable it, then the Microsoft.Framework.DependencyInjection pre-release NuGet package should be resolved.

https://www.myget.org/F/aspnetvnext/

Also the Entity Framework 7 pre-release NuGet packages are also available from the above package source. So you may not need to build it yourself from source code.




Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why