首页 > Web开发 > 详细

.Net Core CLI在CentOS7的安装及使用简介

时间:2016-03-09 15:42:05      阅读:156      评论:0      收藏:0      [点我收藏+]

1. 安装libunwind

cd /usr/local/src

wget http://download.savannah.gnu.org/releases/libunwind/libunwind-1.2-rc1.tar.gz

tar -zxf libunwind-1.2-rc1.tar.gz

cd libunwind-1.2-rc1

sh autogen.sh

./configure

make

make install

cd ..

rm -rf libunwind-1.2-rc1

2. 安装cli

wget https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/Latest/dotnet-centos-x64.latest.tar.gz

tar -zxf dotnet-centos-x64.latest.tar.gz

mkdir /usr/dotnet

mv bin /usr/dotnet

vi ~/.bash_profile

在export PATH前加入新行

PATH=$PATH:/root/dotnet/bin

保存退出

source ~/.bash_profile

3. 测试cli

dotnet --version

技术分享

4. 使用cli

mkdir ~/temp

cd ~/temp

dotnet new

dotnet restore --configfile=temp/NuGet.config

dotnet run

技术分享

技术分享

5. 编译和发布

dotnet build
dotnet publish

build和publish的时候都可以加些参数,具体可看帮助,没有太研究。

.Net Core CLI在CentOS7的安装及使用简介

原文:http://www.cnblogs.com/draweye/p/5258319.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!