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' ,重新打开cmd,dotnet run ,问题终于解决了