Beginner's introductory "ASP." 1: Environment installation

Source: Internet
Author: User
Tags dotnet net command

Download the. NET Core SDK: Https://www.microsoft.com/net/download/windowshttps://www.microsoft.com/net/learn/get-started/windowsInstall vs2017, choose to install core cross-platform when installingafter the program is installed, you can enter dotnet in the console to create the core application

Enter dotnet--help view command Help
. NET Command-line tool (2.1.2) usage: dotnet [runtime-options] [path-to-application] Usage: dotnet [sdk-options] [command] [arguments] [ Command-options] Path-to-application: The path to the application. dll file to execute.  SDK command: New Initializes a. NET project.  Restore restores the dependencies specified in the. NET project.  Run compiles and immediately executes the. NET Project.  Build. NET Project.  Publish publishes. NET projects for deployment, including runtime.  Test runs the unit tests using the tests run program specified in the project.  Pack to create a NuGet package.  Migrate migration of Project.json-based projects to MSBuild-based projects.  Clean clears the build output.  SLN modifies the solution (SLN) file.  Add adds a reference to the project.  Remove removes the reference from the project.  List lists the references in the project.  NuGet provides additional nuget commands.  MSBuild runs the Microsoft Build Engine (MSBuild). Vstest run the Microsoft Test Execution command-line tool. Common options:-v|--verbosity sets the verbosity level of the command.  Allowable values are Q[uiet], M[inimal], N[ormal], d[etailed], and diag[nostic]. -h|--help display Help. Run the dotnet command--help to get more information about the command.  Sdk-options:--version displays the. NET Core SDK version. --info display. NET CoreInformation. -d|--diagnostics Enable diagnostic output.  Runtime-options:--additionalprobingpath <path> The path to probe that contains the probe policy and assembly.  --fx-version <version> The version of the shared framework to be used to run the application's installation version.  --roll-forward-on-no-candidate-fx "Do not roll forward to the candidate sharing framework" is enabled. --additional-deps <path> paths to other Deps.json files.

  

 input dotnet New--help view initialize. NET project command Help
Microsoft Windows [version 6.1.7601] Copyright (c) Microsoft Corporation. All rights reserved.            C:\users\administrator>dotnet usage:dotnet [options]usage:dotnet [path-to-application] Options:-h|--help  Display Help. --version Display version. Path-to-application:the path to an application. dll file to execute. C:\users\administrator>dotnet New--help Welcome to the. NET core!---------------------to learn more about. NET core, go to https://aka.ms/ Dotnet-docs. Use dotnet--help to view available commands or go to Https://aka.ms/dotnet-cli-docs. Telemetry--------------. NET Core collects usage data to improve the user experience. The data is anonymous and does not contain command-line arguments. Data is collected by Microsoft and shared with the community. You can opt out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 with your favorite shell. To learn more about the. NET Core Tools telemetry, visit https://aka.ms/dotnet-cli-telemetry. Preparing for ...  Usage: New [options] option:-H,--help displays help on this command. -L,--list lists the template that contains the specified name.  If no name is specified, list all templates. -N,--name is creating the name of the output.  If no name is specified, the name of the current directory is used.  -O,--output the location where the generated output is to be placed.  -I,--install install the source or template package.  -U,--uninstall uninstalls a source or template package. --type based on availableThe type filter template.  The predefined values are "project", "Item", or "other".  --force forces the content to be generated, even if the content changes existing files.  -lang,--language Specifies the language of the template to be created.  Usage: New [options] option:-H,--help displays help on this command. -L,--list lists the template that contains the specified name.  If no name is specified, list all templates. -N,--name is creating the name of the output.  If no name is specified, the name of the current directory is used.  -O,--output the location where the generated output is to be placed.  -I,--install install the source or template package.  -U,--uninstall uninstalls a source or template package. --type filter templates based on the available types.  The predefined values are "project", "Item", or "other".  --force forces the content to be generated, even if the content changes existing files.  -lang,--language Specifies the language of the template to be created. Template short name language tag---------------------------------------           -----------------------------------------------------------------Console Application Console     [C #], F #, VB Common/consoleclass library Classlib [C #], F #, VB Common/libraryunit Test Project MSTest [C #], F #, VB Test/mstestxunit TeSt Project Xunit [C #], F #, VB test/xunitasp.net Core Empty Web [C #], F # web/emptyasp.net Core Web App (model-view-controller) MVC [C #], F # web/mvcasp.net Core Web App Razor [C #] Web/mvc/razor pagesasp.net C                        Ore with Angular Angular [C #] Web/mvc/spaasp.net Core with React.js react [C #] Web/mvc/spaasp.net Core with React.js and Redux Reactredux [C] Web                                  /mvc/spaasp.net Core Web API Webapi [C #], F # web/webapiglobal.json file  Globaljson confignuget Config nugetconfig configweb     Config webconfig configsolution File sln   Solutionrazor Page                                     Page web/asp. Netmvc viewimports viewimports web/asp. Netmvc viewstart viewstart web/asp.net examples:dotnet new MVC--auth Individu Al dotnet New Classlib--framework netcoreapp2.0 dotnet New--help c:\users\administrator>

Creating an MVC project using dotnet new MVCNow that the project has been created, you can open it with vsual Studio Code  You can run the newly created program with the command dotnet 

access http://localhost:5000 for access 

vs2017 Creating a core applicationSelect: File----new----Project

startup does not recommend using IIS, it is recommended to start with the console 

Beginner's introductory "ASP." 1: Environment installation

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.