It was not possible to find any compatible framework version

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

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
根据引用\[1\],报错"gopls was not able to find modules in your workspace"是指在vscode中出现的一个持续性的报错提示。根据引用\[2\],虽然这个报错不会影响代码的正常运行,但是对于一些开发者来说,这个报错提示可能会让人感到不舒服。为了解决这个问题,可以参考引用\[2\]中提供的参考文档,链接为https://github.com/golang/tools/blob/master/gopls/doc/workspace.md。在这个文档中,你可以找到关于如何配置gopls以正确找到你的工作区模块的详细说明。此外,根据引用\[3\],gopls还有一些其他的解决方案,可以同时处理多个模块,但是从Go 1.18开始,Go工作区是首选的解决方案。因此,你可以根据你的具体需求选择适合你的解决方案来解决这个问题。 #### 引用[.reference_title] - *1* [vscode 中由于多个go mod 的报错:Error loading workspace: gopls was not able to find modules in your ...](https://blog.csdn.net/qq_42819407/article/details/130616942)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [关于vscode中出现gopls was not able to find modules in your workspace报错的解决方案](https://blog.csdn.net/weixin_46047387/article/details/127432122)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值