2、输出结果分析
#1、显示根据指定dotnet new console -o helloworld模板创建了项目 The template "Console Application" was created successfully. #2、然后又主动调用了dotnet restore命令来还原项目的引用,主动安装依赖 Processing post-creation actions... Running 'dotnet restore' on helloworld\helloworld.csproj... Restoring packages for D:\Projects\helloworld\helloworld.csproj...3、运行
cd d:\projects\helloworld dotnet run #运行结果 Hello World! # 恭喜你,你的第一个.NET Core应用程序就这么诞生了 #源代码请查 d:\projects\hellworld\Program.cs 文件 五、备注支持的项目模板
Templates Short Name Language TagsConsole Application console [C#], F#, VB Common/Console
Class library classlib [C#], F#, VB Common/Library
Unit Test Project mstest [C#], F#, VB Test/MSTest
xUnit Test Project xunit [C#], F#, VB Test/xUnit
ASP.NET Core Empty web [C#] Web/Empty
ASP.NET Core Web App (Model-View-Controller) mvc [C#], F# Web/MVC
ASP.NET Core Web App (Razor Pages) razor [C#] Web/MVC/Razor Pages
ASP.NET Core with Angular angular [C#] Web/MVC/SPA
ASP.NET Core with React.js react [C#] Web/MVC/SPA
ASP.NET Core with React.js and Redux reactredux [C#] Web/MVC/SPA
ASP.NET Core Web API webapi [C#] Web/WebAPI
Nuget Config nugetconfig Config
Web Config webconfig Config
Solution File sln Solution
Razor Page page Web/ASP.NET
MVC ViewImports viewimports Web/ASP.NET
MVC ViewStart viewstart Web/ASP.NET
不得不说:C#才是.NET平台的亲儿子啊
如何知道命令支持哪些参数?
答:利用好—help/-h 参数
系列名称:.NET Core 快速入门教程