vs2017 EXE running on Linux

Source: Internet
Author: User
Tags dotnet

1: Release the VS. Netcore Console project to the package (for example, file name: Demo2core.zip, the following will be used)

2: Connect Linux using Xshell software

A. Use the command ID addr on Linux to locate the IP address.

B. Open Xshell New Connection Enter the IP into the host input box and enter the user authentication connection. (Enter df-h to see large partitions on the disk)

3:linux offline installation DNC operating environment

A. Download the DNC offline installation package Https://www.microsoft.com/net/download/linux/build click ". tar.gz download" To download the latest version. You do not need to download the. NET Core Runtime because The. NET core SDK already contains the. NET Cores Runtime

B. Upload to Linux with Xshell, unzip and replace, install DNC offline

Copy the following command, press SHIFT + Insert to paste to the Xshell command line, note to press two times to enter, display installation completed

Yum-y Install unzip zip #压缩, unzip tool
Yum-y Install Lrzsz #用于鼠标拖动上传下载

c. Xshell connected to the VBox virtual machine, drag the downloaded DNC offline installation package dotnet-sdk-2.1.104-linux-x64.tar.gz to Xshell command line, will be automatically uploaded to Linux

d. Xshell Copy the following command, press SHIFT + Insert key to paste in, press ENTER, see dotnet version number indicates successful installation, note to modify the following dotnet-sdk-2.1.104-linux-x64.tar.gz according to the latest file name downloaded Version number

sudo yum-y install libunwind libicu #必须安装, otherwise run dotnet will error

sudo mkdir-p/usr/share/dotnet #创建目录

sudo tar zvxf dotnet-sdk-2.1.104-linux-x64.tar.gz-c/usr/share/dotnet # After the upgrade is installed, if the dotnet command is not found, create a soft link

Ln-s/usr/share/dotnet/dotnet/usr/bin/dotnet #创建软链接
dotnet--info #查看sdk, runtime version number

E.

4: Deploy to Linux

A. note that there are two directories below

/demo1/upload is the directory where the deployment package zip is uploaded
/demo1/dnc2demo is to unzip the deployment package zip into this directory and then run the DNC program in this directory

B. Xshell Copy the following command, press Shift+insert to paste in to execute

Rm-rf/demo1/upload #上传前, first delete the previous version of the compressed package directory upload
Mkdir-p/demo1/upload #创建上传目录
Cd/demo1/upload #进入目录

C.xshell connect a Linux server, drag the mouse deployment package Demo2core.zip to the Xshell window, will automatically upload

d. Xshell Copy the following command, press Shift+insert to paste in to execute

Mkdir-p/demo1/dnc2demo #创建程序运行的目标目录
Unzip-o-d/demo1/dnc2demo Demo2core.zip #-D extract to-directory,-o automatically replace existing files/directories
Cd/demo1/dnc2demo #进入目录
Ls-lt/demo1/dnc2demo #查看更新时间从新到旧

5: On Linux with the command to find the extracted DLL file, under the current file using the command to run the DLL (Dotnet *.dll).

vs2017 EXE running on Linux

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.