问题描述
限时送ChatGPT账号..错误:
<块引用>C:WebAppWebApp.csproj:错误:找不到指定的 SDKMicrosoft.NET.Sdk.Web".C:WebAppWebApp.csproj
我正在尝试打开 Dotnet 核心项目,但出现上述错误.
我已经从
重新加载项目,它就像一个魅力!
Error:
C:WebAppWebApp.csproj : error : The SDK 'Microsoft.NET.Sdk.Web' specified could not be found. C:WebAppWebApp.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/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屋!
更多推荐
[db:关键词]
发布评论