找不到指定的框架'Microsoft.NETCore.App'版本'2.2.0'

编程入门 行业动态 更新时间:2024-10-28 19:26:58
本文介绍了找不到指定的框架'Microsoft.NETCore.App'版本'2.2.0'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用Visual Studio 2019版本16.3.7.我认为这是最新的更新.

I am using Visual Studio 2019 Version 16.3.7. I assume it is the latest update.

当我尝试编译基本的.NET Core 2.2控制台应用程序时:

When I try to compile a basic .NET Core 2.2 console application:

...我收到以下错误:

...I get the following error:

It was not possible to find any compatible framework version The specified framework 'Microsoft.NETCore.App', version '2.2.0' was not found. - The following frameworks were found: 1.0.1 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 2.0.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 2.1.11 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 2.1.12 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 2.1.13 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 3.0.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] You can resolve the problem by installing the specified framework and/or SDK. The .NET Core frameworks can be found at: - aka.ms/dotnet-download .

我的理解是.NET Core 3.0向后兼容.为什么Visual Studio安装程序安装了2.2版以外的所有.NET Core版本?我该如何解决这个问题?

My understanding is that .NET Core 3.0 is backward compatible. Why Visual Studio installer installed all versions of .NET Core except 2.2? How do I solve this problem?

推荐答案

无论出于何种原因,.NET Core跨平台开发"工作负载均未安装.NET Core 2.2.

For whatever reason, .NET Core 2.2 is not installed by the ".NET Core cross-platform development" workload.

打开Visual Studio安装程序,然后转到单个组件"选项卡,您可以从此处安装它:

Open up the Visual Studio installer then go to the "Individual components" tab and you can install it from there:

更多推荐

找不到指定的框架'Microsoft.NETCore.App'版本'2.2.0'

本文发布于:2023-11-05 11:41:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1560746.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   框架   版本   Microsoft   App

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!