- Learning ASP.NET Core 2.0
- Jason De Oliveira Michel Bruchet
- 140字
- 2021-07-02 22:04:17
Creating your first ASP.NET Core 2.0 application in Linux
To create and run your first sample application using only the Terminal window in Linux, you have to do the following steps:
- If the .NET Core 2.0 SDK is not yet installed, then download and install .NET Core Preview 2 from https://www.microsoft.com/net/core/preview for your Linux distribution. Here is an example of how to do that for Ubuntu:
sudosh -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 sudo apt-get install dotnet-sdk-2.0.0-preview2-006497
- Create a folder for your sample application,
mkdir ~/Documents/aspnetcoremvcsample. - Move into the created folder, cd ~/Documents/aspnetcoremvcsample.
- Create a new web application based on the ASP.NET Core 2.0 MVC web application template, dotnet new mvc:

- Run the sample application by executing dotnet run:

- Open a browser and go to http://localhost:5000:

推薦閱讀
- Bootstrap Site Blueprints Volume II
- Expert C++
- Java完全自學(xué)教程
- HTML5 Mobile Development Cookbook
- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Java EE 7 Performance Tuning and Optimization
- 西門子S7-200 SMART PLC編程從入門到實(shí)踐
- Kotlin開發(fā)教程(全2冊(cè))
- Creating Data Stories with Tableau Public
- Learning Docker Networking
- R數(shù)據(jù)科學(xué)實(shí)戰(zhàn):工具詳解與案例分析
- MINECRAFT編程:使用Python語言玩轉(zhuǎn)我的世界
- Mastering jQuery Mobile
- 奔跑吧 Linux內(nèi)核
- Oracle Database XE 11gR2 Jump Start Guide