.NET Core Install for Ubuntu 14.04
2024-09-05 15:42:43
Add the dotnet apt-get feed
In order to install .NET Core on Ubuntu or Linux Mint, you need to first set up the apt-get feed that hosts the package you need.
Ubuntu 14.04 / Linux Mint 17
- sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ 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
Ubuntu 16.04
- sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial 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
Install .NET Core SDK
Before you start, please remove any previous versions of .NET Core from your system by using this script.
To .NET Core on Ubuntu or Linux Mint, simply use apt-get.
- sudo apt-get install dotnet-dev-1.0.0-preview2-003131
- 3
Initialize some code
Let's initialize a sample Hello World application!
- mkdir hwapp
- cd hwapp
- dotnet new
- 4
Run the app
The first command will restore the packages specified in the project.json file, and the second command will run the actual sample:
ps:https://www.microsoft.com/net/core#ubuntu
最新文章
- shell中创建mysql库和执行sql脚本
- yii create url (二)
- gcc 4.8.3 install centos
- C#中判断子窗体是否存在
- Codeforces 372
- HDU 4571 Travel in time ★(2013 ACM/ICPC长沙邀请赛)
- android LayoutInflater和inflate()方法的用法(转载)
- Ural-1018 Binary Apple Tree(树形dp+分组背包)
- struts2+hibernate环境搭建
- Ajax,设置默认焦点以及判断是否为空
- Ubuntu升级到14.04
- python 之变量
- AIO5销售发货单numeric算数溢出报错:将numeric转换成数据类型numeric时出现算数溢出错误
- 安装 VMware CentOS Xmanager Xshell
- FreeMarker案例
- MinGW GCC 6.3.0 2017年3月份出炉啦
- RGB、YUV和HSV颜色空间模型
- windows与mac下安装nginx
- [转]权限系统与RBAC模型概述[绝对经典]
- 1月4日笔记 vi编辑器