.Net启动程序报错:It was not possible to find any compatible framework version


阅文时长| 0.68分钟字数统计| 1092字符
主要内容| 1、引言&背景 2、解决方案 3、声明与参考资料
『.Net启动程序报错:It was not possible to find any compatible framework version』
编写人| SCscHero编写时间| 2021/12/18 PM11:37
文章类型| 系列完成度| 已完成
座右铭每一个伟大的事业,都有一个微不足道的开始。

一、引言&背景   完成度:100%

a) 应对问题

启动.Net程序时,遇到了如下错误:

It was not possible to find any compatible framework version 
The framework' Microsof t. AspNetCore. App,version' 2.2.0'' (x64) was not found.
The following frameworks were found:
2. 1.30 at [c: \Program Files dotnet \shared\Microsof t. AspNetCore. App]
3. 1. 18 at [C: \Program Files dotnet \shared\Microsoft. AspNetCore. App
5.0.9 at [C: Program Files dotnet shared Microsof t. AspNe tCore. App
6.0.0 rc.1.21452.15 at [C: \Program Files dotnet \shared\Mi crosof t. AspNetCore. App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at: 
https:// aka. ms/ dotnet -core-applaunch?framework=Microsof t. AspNetCore. App&framework version=2. 2. O&arch=x64&rid=win10-x64
C: \Program Files dotnet \dotnet. exe (process 8432) exited with code 2147450730.
To automatically close the console when debugging stops, enable Tools >0ptions- >Debugging >Automatically close the console when debugging stops.
Press any key to close this window...

b) 应用场景

  • 常见于项目中使用了多.Net开发框架版本时,如使用了.Net Core3.1、.Net Core2.2、.Net Framework4.7等等多个SDK。
  • 常见于多项目多开发框架版本启动的场景。

二、解决方案   完成度:100%

a) 步骤1:检查开发框架组件是否安装

Tools -> Get Tools and Features... -> Individual component选项卡。

b) 步骤2:下载SDK

如果步骤1安装后仍不行,需要单独下载SDK了。链接是:https://dotnet.microsoft.com/en-us/download。

目前微软主推.Net6的统一版本,所以有些入口可能不明显,整理如下:

三、声明与参考资料   完成度:100%

原创博文,未经许可请勿转载。

如有帮助,欢迎点赞、收藏、关注。如有问题,请评论留言!如需与博主联系的,直接博客私信SCscHero即可。

引用来源:https://www.cnblogs.com/SCscHero/p/15706478.html

版权声明:本文为YES开发框架网发布内容,转载请附上原文出处连接
管理员
上一篇:windows平台的分布式微服务解决方案(6)--IUtility工具介绍
下一篇:如何更改winform中Groupbox的Controls属性内控件的排序
评论列表

发表评论

评论内容
昵称:
关联文章

.Net启动程序It was not possible to find any compatible framework version
记一次.Net Core程序启动失败的排查过程
EF生成迁移脚本报:Entity type '' has a split mapping, but it doesn't map any non-primary key property to the main store object. Keep at least one non-primary key property mapped to a column on '.
.NETCore 运行项目:Could not load file or assembly ***
Linq to SQL语句基础讲解
.NET Core Winform 打开窗体设计器
.NET Core中使用编码GB2312‘GB2312‘ is not a supported encoding name 解决方案
IIS中应用程序池自动停止,重启
Python读取excel xlrd读取xlsx:Excel xlsx file; not supported
WCF中常见的:The content type text
Python使用html解析包Requests-html运行py文件没问题,Pyinstaller打包exe后运行
插入代码页面
.NET Framework 系统要求
Macros $(DevEnvDir), $(SolutionFileName), $(SolutionPath), $(SolutionDir), $(SolutionName), $(SolutionExt) are not defined during publish. Worked fine during build
VS .NET使用EF添加实体数据模型向导添加连接
Visual Studio (VS) 使用Gulp ReferenceError: primordials is not defined
EFCore链接数据库
记一次本地正常上线接口404
记一次 .NET 某市附属医院 Web程序 偶发性CPU爆高分析
C# 扫描识别图片中的文字(.NET Framework

联系我们
联系电话:15090125178(微信同号)
电子邮箱:garson_zhang@163.com
站长微信二维码
微信二维码