1
votes

I am trying to build a web site using .net framework core with entity framework core. I created a web project using the ASP.NET Core Web Application (.net core) template with Visual Studio 2015 Professional (update 3). Then I used Nuget to add the Microsoft.EntityFrameworkCore.Tools to the solution.

When I compiled the solution, I got this dependency error - "NU1001 The dependency Microsoft.EntityFrameworkCore.Tools >= 1.0.0-preview2-final could not be resolved". I googled the topic but couldn't find the solution. How can I fix this??

2
Did you install asp.net core? Check if your package is compatible with your current asp.net core version.Fabricio Koch
i have .net core 1.01 - vs 2015 tooling preview 2 installed. I did a repair but still have the dependency not resolved issue.user7002499
Update your question with your project.json.Fabricio Koch
"dependencies": { "Microsoft.AspNetCore.Diagnostics": "1.0.0", "Microsoft.AspNetCore.Mvc": "1.0.1", "Microsoft.AspNetCore.Razor.Tools": { "version": "1.0.0-preview2-final", "type": "build" }, "Microsoft.AspNetCore.Routing": "1.0.1", "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0", "Microsoft.AspNetCore.Server.Kestrel": "1.0.1", "Microsoft.AspNetCore.StaticFiles": "1.0.0", "Microsoft.EntityFrameworkCore": "1.0.1", "Microsoft.EntityFrameworkCore.SqlServer": "1.0.1",user7002499
"Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final", "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0", "Microsoft.Extensions.Configuration.Json": "1.0.0", "Microsoft.Extensions.Logging": "1.0.0", "Microsoft.Extensions.Logging.Console": "1.0.0", "Microsoft.Extensions.Logging.Debug": "1.0.0", "Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0", "Microsoft.NETCore.App": { "version": "1.0.1", "type": "platform" }, "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0"user7002499

2 Answers

9
votes

For those who may run into this problem, you would need to right click on the References and click Restore Packages. That solved the problem.

0
votes

Have you added the following nuget Packages sources in your nuget package?

https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json

You can do so in Tools > Nuget Package Manager Settings > Packages sources

Also, what is your SDK version?

It should be "1.0.0-preview2-003131".