Run the dotnet Core console program on the Raspberry Pi

Source: Internet
Author: User
Tags dotnet

---restore content starts---

Microsoft's Dotnet Core has been released for a long time, and now the latest version is 2.0.2

We found a lot of articles on the Service & Micro service for dotnet Core. But the local programs are less pathetic.

As the CS end adhere to the dotneter I think should do something, let mistakenly into the dotnet CS end of the small pot friends do not go down.

Good net worth, measurements, the bank card number has been explained clearly, down we get to the point, see how to run on ARMHF device a dotnet core console application.

First of all

You need to have a Raspberry Pi or similar device (Eg:tinker board etc.) Note that the device must be armv7 and above.

ARMV6 device because the instruction set problem is not supported for dotnet core runtime (eg: Raspberry Pi Zero/zero W)

You also need to have a hand-called IDE (VS/VIM/VS code) in this I use the VS Code first-time feeling is still relatively useful.

(1) Raspberry Pi update installation dotnet core Runtime runtime

Update system

#> sudo apt update && sudo apt upgrade

Installing dependent libraries

#>sudo apt Install curl Libunwind8 gettext

Install latest version of ARMHF version dotnet Runtime latest version in Https://github.com/dotnet/core-setup view

#>wget https://dotnetcli.blob.core.windows.net/dotnet/Runtime/master/dotnet-runtime-latest-linux-x64.tar.gz

Create dotnet folder in opt directory to extract runtime files to this folder

#>sudo mkdir-p/opt/dotnet && sudo tar zxf dotnet.tar.gz-c/opt/dotnet

Create Shortcut to Local bin

#> sudo ln-s/opt/dotnet/dotnet/usr/local/bin

PM: dotnet publish-r linux-arm

---restore content ends---

Run the dotnet Core console program on the Raspberry Pi

Related Article

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.