我目前在我的Fedora盒子上安装了dotnet核心版本2,dotnet --version
按预期返回2.0.0
。
当我使用netcoreapp1.1
运行定位dotnet run
的现有项目时,我得到:
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '1.1.2' was not found.
- Check application dependencies and target a framework version installed at:
/
- Alternatively, install the framework version '1.1.2'.
(请注意dotnet build
在项目上成功完成)
如何使用当前的sdk(2.0.0)安装框架版本运行时1.1.2,其中dotnet run
将适用于新项目和针对运行时1.1.2的项目?
在我的neivity中,我下载了1.1.2运行时并将1.1.2文件夹复制到我的/usr/share/dotnet/shared/Microsoft.NETCore.App
文件夹中,并在运行Failed to initialize CoreCLR, HRESULT: 0x80131500
时获得dotnet run
奖励...但我知道在我开始之前不会怎么做。
作为旁注,我的Windows框中有dotnet sdk 2,运行项目很好......但这都是用Visual Studio黑魔法设置的。