It was not possible to find any compatible framework version

本文介绍了解决在运行OrchardCore过程中遇到的.NET Core版本不兼容问题的方法。通过调整环境变量Path,移除指向不正确.NET Core版本的路径,成功解决了应用程序依赖问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

It was not possible to find any compatible framework version

The specified framework 'Microsoft.NETCore.App', version '2.0.0' was not found.

- Check application dependencies and target a framework version installed at:

\

- Alternatively, install the framework version '2.0.0'.

 

The workaround from my computer is below,

There is the same problem with my project, the workaround to resolve it successfully is that remove the item 'C:\Program Files (x86)\dotnet' from the Path of Environment Variable because I found I did not install the right netcore version under X86. I have not tried to install the proper version with x86, appreciate that you tell me if you have done that test.

在运行 OrchardCore时,一直提示错误无法运行,经过近一个月的研究,发现dotnet使用的是x86版本,而我的pc中并没有安装x86下的2.0.0, 虽然在x86下找到了2.1.0-preview, 猜测应该是无法兼容。

在系统的Environment Variable中的Path变量去掉'C:\Program Files (x86)\dotnet' ,重新打开cmddotnet run ,问题终于解决了

转载于:https://www.cnblogs.com/68681395/p/8027296.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值