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

前端 未结 20 1677
太阳男子
太阳男子 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:09

    I also had the same problem. The is no SDK folder under the Dependencies one. Therefore, no Microsoft.NetCore.App libraries !

    To solve this problem, in Nuget manager window, install any nuget which depends on .NetCoreApp (you can install for example Microsoft.AspNetCore or BundlerMinifier.Core from the Microsoft Visual Studio Offline Packages source).

    The SDK will be restored by the same time.

    Once it is back, you can uninstall the previously added nuget. The SDK will remain in place.

提交回复
热议问题