0
votes

Using VS 2017, v15.1, Win 7, have many projects running no problem. I simply

  • New, Project, Web C#, .NET Core Web App (.NET Core)

  • ASP.NET Core 1.1 Templates

  • F5, see "Hello World" in IE

  • Tool, NuGet, Browse, try to add Microsoft.AspNetCore.StaticFiles, Install got "Package restore failed. Rolling back package changes".

Maybe something is not up to date? Nuget again, it prompts me to update on AspNetCore and ApplicationInsights.AspNetCore. Okay, let's update them. Click on the Update button yielding the same message.

This is a brand new, I haven't added any code yet. Read these, no help

Console app, Serilog, MVC Core

1
I recommend update your version of VS to latest stable release ie 15.6.4 at the moment and see if that solves it. Also why start a new project with asp.net core 1.x templates when 2.0 is out and 2.1 is coming soon?Joe Audette
@JoeAudette this is a company machine, hand-tired.Jeb50

1 Answers

0
votes

It seems to me your visual studio cannot access your package source. Check if the Nuget.Org source has been added here Tools > nuget package manager > package manager settings > Package Sources if not, add source: https://api.nuget.org/v3/index.json. If the package source already exists then just clear the cache. enter image description here