安装dotnet核心版本1.1运行时

时间:2017-10-19 10:37:44

标签: linux .net-core fedora

我目前在我的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黑魔法设置的。

0 个答案:

没有答案