-
Notifications
You must be signed in to change notification settings - Fork 1.1k
error NU1001: The dependency Microsoft.NETCore.App >= 1.0.1 could not be resolved #7409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I ran into the same issue. |
Thank you for the tip. I tried that, but it did work. |
@litoshko |
Since it seems that this issue was due to the incorrect package name and that the issue has been resolved, I will close it. Please reopen if you run into this again. |
Don't forget to try Restore Packages (right mouse click on project) !!. I had seemingly endless problems as the template kept failing upon first load. There were always two packages that failed - Microsoft.Extensions.Configuration.CommandLine and Microsoft.AspNetCore.AngularServices. After a dozen uninstall and install of the dotnetcore framework and tools and a few reinstalls of Visual Studio the situation had not changed. I finally tried right mouse clicking on the project and selecting Restore Packages. It then worked. I'm not sure if anything else I did along the way actually changed anything. |
Clear the contents of project.lock.json file and save.It will restore the packages once again , this should be a good workaround. It worked for me! |
I solve the same problem in my project by Tools -> NuGet Package Manager -> Package Manager Console |
Steps to reproduce
Install ASP.NET Core + Angular 2 template for Visual Studio, create a new project with that template, then build the project.
Expected behavior
Finish building successfully.
Actual behavior
Failure
Environment data
dotnet --info
output:project.json(3,30): error NU1001: The dependency Microsoft.NETCore.App >= 1.0.1 could not be resolved.
project.json(10,41): error NU1001: The dependency Microsoft.NETCore.App >= 1.0.1 could not be resolved.
project.json(3,30): error NU1001: The dependency Microsoft.NETCore.App >= 1.0.0 could not be resolved.
project.json(10,41): error NU1001: The dependency Microsoft.NETCore.App >= 1.0.0 could not be resolved.
project.json(7,53): error NU1001: The dependency Microsoft.AspNetCore.AngularServices >= 1.0.0-* could not be resolved.
project.json(9,39): error NU1001: The dependency Microsoft.AspNetCore.Mvc >= 1.0.1 could not be resolved.
project.json(15,50): error NU1001: The dependency Microsoft.AspNetCore.Server.Kestrel >= 1.0.1 could not be resolved.
project.json(19,61): error NU1001: The dependency Microsoft.Extensions.Configuration.CommandLine >= 1.0.0 could not be resolved.
The following is the project.json:
The text was updated successfully, but these errors were encountered: