gpt4 book ai didi

.net - 我的Visual Studio中缺少.NET Core 2.0

转载 作者:行者123 更新时间:2023-12-03 11:47:32 30 4
gpt4 key购买 nike

因此,我已经安装了官方的.NET Core 2.0 SDK,当我在Visual Studio中时,出现很多错误,并且未列出目标框架:(

就像未安装.NET Core 2.0一样。

enter image description here

这是.csproj文件:

<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
</ItemGroup>

</Project>

同样, dotnet --version返回 2.0.0
所以..我缺少一些安装工具吗?

编辑/更新:

这是我来自VS的系统信息:
Microsoft Visual Studio Community 2017 
Version 15.3.1
VisualStudio.15.Release/15.3.1+26730.8
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Community

Visual Basic 2017 00369-60000-00001-AA912
Microsoft Visual Basic 2017

Visual C# 2017 00369-60000-00001-AA912
Microsoft Visual C# 2017

Application Insights Tools for Visual Studio Package 8.8.00712.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017 15.0.30726.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services 1.0
Provides languages services for ASP.NET Core Razor.

ASP.NET Template Engine 2017 15.0.30726.0
ASP.NET Template Engine 2017

ASP.NET Web Frameworks and Tools 2017 5.2.50601.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0 15.0.30728.0
Azure App Service Tools v3.0.0

... rest snipped.

最佳答案

请确保您使用Visual Studio 2017 Update 3(版本15.3、26730.01):Help-> About Microsoft Visual Studio

关于.net - 我的Visual Studio中缺少.NET Core 2.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45778942/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com