- 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:

推薦閱讀
- 深入淺出Java虛擬機(jī):JVM原理與實(shí)戰(zhàn)
- Windows系統(tǒng)管理與服務(wù)配置
- Android 7編程入門(mén)經(jīng)典:使用Android Studio 2(第4版)
- Service Mesh實(shí)戰(zhàn):基于Linkerd和Kubernetes的微服務(wù)實(shí)踐
- Mastering HTML5 Forms
- Mastering JavaScript
- Java程序設(shè)計(jì)
- 軟件再工程:優(yōu)化現(xiàn)有軟件系統(tǒng)的方法與最佳實(shí)踐
- Java Web入門(mén)很輕松(微課超值版)
- Swift 2 Blueprints
- VMware vRealize Orchestrator Essentials
- Performance Testing with JMeter 3(Third Edition)
- The Java Workshop
- 數(shù)據(jù)預(yù)處理從入門(mén)到實(shí)戰(zhàn):基于SQL、R、Python
- HoloLens Blueprints