Compile the dotnet CLI source code on Linux to generate the. NET Core SDK installation package

Source: Internet
Author: User

. NET open source, with more DIY fun. This blog post records the Deb installation package for generating the. NET Core SDK on the newly installed Linux Ubuntu 14.04 by self-compiling the dotnet CLI source code.

1) Install an existing version of the. NET Core SDK

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 hkp://keyserver.ubuntu.com:80--recv-keys 417A0893sudo Apt-get Updateapt-get Install dotnet-dev-1.0.0-preview2.1-003177

If you do not install, the following error will appear on build

Dotnet_install:Error:Unable to locate Libunwind. Install Libunwind to Continuedotnet_install:Error:Unable to locate Libicu. Install Libicu to continue

2) Check out the source code of the dotnet CLI from GitHub

Apt-get Install Gitgit clone https://github.com/dotnet/cli.git

3) Install dependent components liblldb, devscripts, Debhelper

Apt-get Install liblldb-3.6apt-get Install devscriptsapt-get install debhelperapt-get Install Curl

4) Run the build command

./build.sh/t:compile

5) output results after build success

~/cli/artifacts/ubuntu.14.04-x64/packages# ls  Dotnet-host-ubuntu-x64.1.0.1.debdotnet-hostfxr-ubuntu-x64.1.0.1.debdotnet-sharedframework-ubuntu-x64.1.0.1.deb

Note: Build progress can be viewed through the init-microsoft.dotnet.buildtools.log log file at build.

Compile the dotnet CLI source code on Linux to generate the. NET Core SDK installation package

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.