zoukankan      html  css  js  c++  java
  • .NET Core 2.0.5安装具体步骤

    .NET Core 2.0.5 comprises:

    • .NET Core Runtime 2.0.5
    • .NET Core SDK 2.1.4
     SDK InstallerSDK BinariesRuntime InstallerRuntime Binaries
    Windows 32-bit / 64-bit 32-bit / 64-bit 32-bit / 64-bit 32-bit / 64-bit
    macOS 64-bit 64-bit 64-bit 64-bit
    Linux * See installations steps below 64-bit - 64-bit

    Checksum files to verify downloads are available as follows:

    Debug Symbols

    Docker

    Images for .NET Core 2.0.5 are available on Docker.

    Installing .NET Core on Linux

    Uninstall any Preview versions

    If you have .NET Core Previews installed, it will need to be removed before attempting to install .NET Core 2.0. This can be done by running a command such as the following.

    sudo apt remove dotnet-dev-2.0.0-preview2-006497

    Ubuntu and Debian based systems

    Register the Microsoft key, the product repository for your distro and install required system dependencies with the following scripts.

    Ubuntu 17.10

    curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
    sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
    sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-artful-prod artful main" > /etc/apt/sources.list.d/dotnetdev.list'

    Ubuntu 17.04 (Planned EOL by Ubuntu, January 2018)

    curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
    sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
    sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-zesty-prod zesty main" > /etc/apt/sources.list.d/dotnetdev.list'

    Ubuntu 16.04

    curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg

    (上一条命令操作可能会遇到问题问题,提示apt-get install curl 提示没有这个软件源
    解决办法:

              sudo add-apt-repository ppa:costamagnagianfranco/ettercap-stable-backports  

              sudo apt-get update  

              sudo apt-get install curl  

    )
    sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
    sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'

    Ubuntu 14.04

    curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
    sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
    sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main" > /etc/apt/sources.list.d/dotnetdev.list'

    Then, update the package cache and install .NET Core

    sudo apt-get update
    sudo apt-get install dotnet-sdk-2.1.4

    RHEL and Fedora based systems

    Register the Microsoft key, the product repository for your distro and install required system dependencies with the following scripts.

    Fedora, CentOS, Oracle Linux

    sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
    sudo sh -c 'echo -e "[packages-microsoft-com-prod]
    name=packages-microsoft-com-prod
    baseurl=https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod
    enabled=1
    gpgcheck=1
    gpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/dotnetdev.repo'

    SUSE Enterprise Linux, OpenSUSE

    sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
    sudo sh -c 'echo -e "[packages-microsoft-com-prod]
    name=packages-microsoft-com-prod
    baseurl=https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod
    enabled=1
    gpgcheck=1
    gpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/zypp/repos.d/dotnetdev.repo'

    Then, update the package cache and install .NET Core

    Fedora, CentOS and Oracle Linux

    sudo yum update
    sudo yum install dotnet-sdk-2.1.4

    SUSE Enterprise Linux and OpenSUSE

    sudo zypper update
    sudo zypper install dotnet-sdk-2.1.4

    Note: When installing the SDK, SUSE and OpenSUSE may report that nothing provides libcurl. libcurl should already be installed on supported versions of both distros. Run zypper search libcurl to confirm. The error will present 2 "solutions". Choose "Solution 2" to continue installing .NET Core.

    Installation from a binary archive

    Installing from the packages detailed above is recommended and you can also install from binary archive. When using binary archives to install, the contents must be extracted to a user location such as $HOME/dotnet and a symbolic link created for dotnet.

    mkdir -p $HOME/dotnet && tar zxf dotnet.tar.gz -C $HOME/dotnet
    export PATH=$PATH:$HOME/dotnet

    Server Hosting

    If you are looking to host stand-alone apps on Windows Servers, the ASP.NET Core Module for IIS can be installed separately on servers without installing .NET Core runtime.

    Windows

    You can download the Windows (Server Hosting) installer and run the following command from an Administrator command prompt: DotNetCore.2.0.5-WindowsHosting.exe

    Linux

    On supported Linux systems, register the Microsoft Product feed as described above and install dotnet-hosting-2.0.5 using your package manager.

    ASP.NET Runtime Core Package Store

    The Runtime Package Store is installed by the .NET Core SDK and the Windows Server Hosting installer. If you need to install the Runtime Package Store separately, the following can be used.

    原文链接:https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.5-download.md

  • 相关阅读:
    HTML/网站一键打包APK工具(html网页打包安卓APP应用)
    四款最好用的html转苹果APP免上架免签名打包在线生成工具
    ios11,弹出层内的input框光标错位
    前端进阶小知识
    html数据交互小知识
    H5特殊情况解决方案
    H5个人不常用但感觉很重要的东西
    H5小知识
    Java SE 8 Programmer复习小结
    JSP页面中onSubmit方法不执行
  • 原文地址:https://www.cnblogs.com/1175429393wljblog/p/8259539.html
Copyright © 2011-2022 走看看