Visual Studio 2017更新3-找不到指定的SDK'Microsoft.NET.Sdk.Web' [英] Visual studio 2017 Update 3 - The SDK 'Microsoft.NET.Sdk.Web' specified could not be found

查看:531
本文介绍了Visual Studio 2017更新3-找不到指定的SDK'Microsoft.NET.Sdk.Web'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:


C:\WebApp\WebApp.csproj:错误:SDK'Microsoft.NET.Sdk.Web找不到指定的。 C:\WebApp\WebApp.csproj


我正在尝试打开Dotnet核心项目,但遇到上述错误。



我已经从



重新加载项目,它就像一个魅力!


Error:

C:\WebApp\WebApp.csproj : error : The SDK 'Microsoft.NET.Sdk.Web' specified could not be found. C:\WebApp\WebApp.csproj

I am trying to open Dotnet core project and I am getting the above error.

I have installed the latest SDK from https://www.microsoft.com/net/core#windowscmd

I have checked the path for dotnet cmd and it works fine.

Am I missing something? Let me know if you need more information.

The target framework is set to .NET 4.5.2

解决方案

As suggested in the comment, I updated global.json file as shown below

{
  "sdk": {
  "version": "1.0.0"
 } 
}

Also, I had to remove the <ItemGroup> which contains wwwroot files path in .csproj file.

Reload the project and it works like a charm!

这篇关于Visual Studio 2017更新3-找不到指定的SDK'Microsoft.NET.Sdk.Web'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆