hello netcore

一、环境准备

VMware

CentOS 7.1

国内下载镜像地址:

http://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1503.iso
http://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1503-01.iso

 

二、dotnet 安装

在centos7.1环境下直接参考微软官方说明(centos6就比较麻烦了,我尝试了下需要安装很多基础组建,就没再纠结此问题,果断换系统)

  1. sudo yum install libunwind libicu
  2. curl -sSL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?linkid=848821
  3. sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
  4. sudo ln -s /opt/dotnet/dotnet /usr/local/bin

三、demo  

  dotnet new console -o hwapp #官网下载hwapp 

  cd hwapp  #编辑以下hello world改为hello netcore

  dotnet restore 

  dotnet run # run && output 

      

 四、关于netcore命令的说明

   

  

 

      fyi.

 

转载于:https://www.cnblogs.com/joseph_zheng/p/6851819.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值