System could not be found Visual Studio 2017 ASP.NET Core project

前端 未结 20 1704
太阳男子
太阳男子 2020-12-14 05:50

I\'ve installed the newly released version of Visual Studio 2017 and started a fresh ASP.NET Core project targeting .NET Core.

Out of the box, I\'m getting the

20条回答
  •  一个人的身影
    2020-12-14 06:06

    I had the same problem, first when converting a VS2015 net core mvc web project to 2017 and then when trying to create a new core web application in 2017.

    Went to Tools|NuGet Package Manager|Package Manager Settings - checked 'Allow NuGet to download missing packages' and 'Automatically check for missing packages during build in VS' and then clicked 'Clear All NuGet Cache(s)'.

    Then re-built the solution - it found and loaded all the required packages and ran OK.

    May not work for all cases but simple and worth a try.

提交回复
热议问题