Deepin Linux under Configuration. Netcore Development environment

Source: Internet
Author: User

I. Installing the net Core SDK

1. Open terminal (shortcut key: ctrl+alt+t)

2. Download the appropriate tools and. NET Core dependency Libraries. Where the Deepin system does not exist libicu52 library, so need to install libicu52, which is not the original Debian installation instructions.

sudo Install Curl Libunwind8 gettext libicu52

3. Download. NET Core SDK.tar.gz Save to home directory

Https://www.microsoft.com/net/download/linux/build

4. Create a storage folder and unzip the downloaded SDK zip file to the/opt/dotnet directory.

sudo mkdir sudo tar zxf dotnet. tar. Gz-c/opt/dotnet

5. Link the dotnet tool to the/usr/local/bin directory to make it easy to use the command directly in the command.

sudo LN -s/opt/dotnet/dotnet/usr/local/bin

The. NET Core SDK installation is complete.

Two. Resolve dotnet Report segment error exception

1. Download Libcurl3_7.38.0-4+deb8u10_amd64.deb

2. Installing Libcurl3_7.38.0-4+deb8u10_amd64.deb

sudo dpkg-i ibcurl3_7. 38.0-4+deb8u10_amd64.deb

3. Remove Curl and lock the lock LIBCURL3 to prevent the library from being upgraded online later.

sudo Apt Purge Curl sudo Apt-mark hold Libcurl3

Three. Initialization code

1. Create a HelloWorld instance

dotnet New Console-o myApp
CD MYAPP

2. Run the instance

The first command restores the package specified in the project file, and the second command runs the actual example.

dotnet Restoredotnet Run

Deepin Linux under Configuration. Netcore Development environment

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.