Create an ASP. NET Core Web App in Visual Studio Code

Source: Internet
Author: User
Tags dotnet

Https://www.microsoft.com/net/core#windowscmd

Https://download.microsoft.com/download/B/9/F/B9F1AF57-C14A-4670-9973-CDF47209B5BF/dotnet-dev-win-x64.1.0.4.exe

The installation package should be updated later

Https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-create-web-app-using-vscode

D:\chucklu\git\github\chucklu>mkdir Samplewebapp

D:\CHUCKLU\GIT\GITHUB\CHUCKLU>CD Samplewebapp

D:\chucklu\git\github\chucklu\samplewebapp>dotnet New MVC

Welcome to. NET core!
---------------------
Learn more about. NET Core @ https://aka.ms/dotnet-docs. Use dotnet--help to see available commands or go to Https://aka.ms/dotnet-cli-docs.

Telemetry
--------------
The. NET Core Tools collect usage data in order to improve your experience. The data is anonymous and does not include command-line arguments. The data is collected by Microsoft and GKFX with the community.
You can opt out of telemetry by setting a dotnet_cli_telemetry_optout environment variable to 1 using your favorite shell.
You can read more about. NET Core Tools Telemetry @ https://aka.ms/dotnet-cli-telemetry.

Configuring ...
-------------------
A command is running to initially populate your The local package cache, to improve restore speed and enable offline access. This command would take the up to a minute to complete and would only happen once.
Decompressing 100% 4614 ms
Expanding 100% 6000 ms
Getting ready ...
Content Generation time:428.5828 ms
The template "ASP. NET Core Web App" created successfully.

D:\chucklu\git\github\chucklu\samplewebapp>dotnet Restore
Restoring Packages for D:\ChuckLu\Git\GitHub\ChuckLu\SampleWebApp\SampleWebApp.csproj ...
Generating MSBuild file D:\ChuckLu\Git\GitHub\ChuckLu\SampleWebApp\obj\SampleWebApp.csproj.nuget.g.props.
Generating MSBuild file D:\ChuckLu\Git\GitHub\ChuckLu\SampleWebApp\obj\SampleWebApp.csproj.nuget.g.targets.
Writing lock file to disk. Path:d:\chucklu\git\github\chucklu\samplewebapp\obj\project.assets.json
Restore completed in 1.65 sec for D:\ChuckLu\Git\GitHub\ChuckLu\SampleWebApp\SampleWebApp.csproj.

NuGet Config files used:
C:\Users\clu\AppData\Roaming\NuGet\NuGet.Config

Feeds used:
Https://api.nuget.org/v3/index.json

D:\chucklu\git\github\chucklu\samplewebapp>dotnet Run
Hosting environment:production
Content Root Path:d:\chucklu\git\github\chucklu\samplewebapp
Now listening on:http://localhost:5000
Application started. Press CTRL + C to shut down.

Create an ASP. NET Core Web App in Visual Studio Code

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.