Ubuntu 14.04 上安装使用 .NET Core

.NET Core 1.0 正式了,所以决定在介绍页面的步骤:

步骤1.

sudo sh -c ‘echo “deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet/ trusty main” > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv –keyserver apt-mo.trafficmanager.net –recv-keys 417A0893
sudo apt-get update

步骤2.

sudo apt-get install dotnet-dev-1.0.0-preview2-003121

步骤3.

mkdir hwapp

cd hwapp

dotnet new

步骤4.

dotnet restore

dotnet run

结果出了不少

问题1,由于网络原因,资源下载不下来——只能反复尝试

问题2,执行dotnet run 时报错:

The specified framework ‘Microsoft.NETCore.', version ‘1.0.0-rc2-3002702' was not found.
– Check application dependencies and target a framework version installed at:
/usr/share/dotnet/shared/Microsoft.NETCore.
– The following versions are installed:
1.0.0
– Alternatively, install the framework version ‘1.0.0-rc2-3002702'.
SUMMARY: Total: 1 targets, Passed: 0, Failed: 1.

问题2:

在步骤2后面,执行如下命令:

apt-get install dotnet-sharedframework-microsoft.netcore.-1.0.0-rc2-3002702

解决上面后,再执行:dotnet run

结果如下图:

udast

更多Ubuntu相关信息见

更多内容请长按二维码关注(更有不定期发红包活动吆^0^):
致儒先生

转载自:https://www.linuxidc.com/Linux/2016-07/132885.htm

声明: 除非转自他站(如有侵权,请联系处理)外,本文采用 BY-NC-SA 协议进行授权 | 智乐兔
转载请注明:转自《Ubuntu 14.04 上安装使用 .NET Core
本文地址:https://www.zhiletu.com/archives-7682.html
关注公众号:智乐兔

赞赏

wechat pay微信赞赏alipay pay支付宝赞赏

上一篇
下一篇

相关文章

在线留言

你必须 登录后 才能留言!