在使用 ASP.Net Core 的 VSCode 中找不到指定的 SDK 'Microsoft.Net.Sdk.Web' [英] The SDK 'Microsoft.Net.Sdk.Web' specified could not be found in VSCode with ASP.Net Core

查看:57
本文介绍了在使用 ASP.Net Core 的 VSCode 中找不到指定的 SDK 'Microsoft.Net.Sdk.Web'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在 Windows 上运行 ASP.Net Core 项目时,在 VSCode 中出现以下错误:

Getting the following error in VSCode when trying to run a ASP.Net Core project on Windows:

The SDK 'Microsoft.Net.Sdk.Web' specified could not be found

我的 csproj<Project Sdk="Microsoft.NET.Sdk.Web"> 开头,但不知何故无法解析此 SDK.>

My csproj starts with <Project Sdk="Microsoft.NET.Sdk.Web"> and somehow it is not able to resolve this SDK.

推荐答案

in a csproj文件基本上是告诉 VSCode 在 IIS 中运行这个项目.

<Project Sdk="Microsoft.NET.Sdk.Web"> in a csproj file is basically telling VSCode to run this project in IIS.

在 Windows 中安装 IIS 功能为我解决了这个问题.

Installing IIS feature in Windows solved it for me.

这篇关于在使用 ASP.Net Core 的 VSCode 中找不到指定的 SDK 'Microsoft.Net.Sdk.Web'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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