zoukankan      html  css  js  c++  java
  • .Net Core CLI在CentOS7的安装及使用简介

    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:/usr/dotnet/bin

    保存退出

    source ~/.bash_profile

    3. 测试cli

    dotnet --version

    clip_image001

    4. 使用cli

    mkdir ~/temp

    cd ~/temp

    dotnet new

    dotnet restore --configfile=temp/NuGet.config

    dotnet run

    clip_image002

    clip_image003

    5. 编译和发布

    dotnet build
    dotnet publish

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

  • 相关阅读:
    第四周JSP作业
    jsp第二次作业
    3.4软件管理与测试作业
    jsp3月3日作业
    课后listview作业
    安卓sql
    activity带数据跳转
    answers
    阿里云ESC无法使用python发送邮件的问题
    Ubuntu 更改时区
  • 原文地址:https://www.cnblogs.com/draweye/p/5258319.html
Copyright © 2011-2022 走看看