Set up the NetCore environment under Ubuntu16.04 and ubuntu16.04netcore

Source: Internet
Author: User

Set up the NetCore environment under Ubuntu16.04 and ubuntu16.04netcore

Cross-platform collection: http://www.cnblogs.com/dunitian/p/4822808.html#linux

VSCode installation: http://www.cnblogs.com/dunitian/p/6661644.html

Soudog pinyin installation: http://www.cnblogs.com/dunitian/p/6662374.html

Official Reference Links:

Offline download: https://www.microsoft.com/net/download/linux

. NET Core Command https://docs.microsoft.com/zh-cn/dotnet/articles/core/tools/index

1. Set Source and update https://www.microsoft.com/net/core#linuxubuntu

2. Install the SDK

sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893

sudo apt-get update

1. Create a console ProgramDotnet new console-o xxx

2. Open it with VSCode

3. Ctrl + 'Open the terminal

4. Opening the CS file for the first time will load some packages used for debugging.

5. Load dependency packagesDotnet restore, Run the programDotnet run

6. automatically created configuration files

7. Run the Console

8. OK. vscode may not be used with the visual interface, but it is much better than other editors.

9. Create an MVC ProjectDotnet new mvc-o MyMVC

10. Load dependency packagesDotnet restoreRunDotnet run

11. Open the address in the browser ~ Running Effect

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.