【文件属性】:
文件名称:Netcoreapp3_Templates:使用netcoreapp3.0,C#8.0,可为空的引用类型,PublishTrimmed等的dotnet新模板
文件大小:20KB
文件格式:ZIP
更新时间:2021-02-20 09:16:39
C#
Netcoreapp3_Templates
使用netcoreapp3.0 / 3.1,C#8.0,可为空的引用类型,PublishTrimmed等新建的dotnet模板。
有关新功能的更多信息,请参见 。
包含的模板
.NET Core 3.1控制台应用程序
用法
dotnet new net31_console
使用.NET Core 3.1,C#8.0,可为空的引用类型(警告视为错误),单个文件发布和修剪的控制台应用程序。
由于单个文件发布需要指定单个运行时标识符,因此构建和发布应用程序需要使用-r标志:
dotnet build -r linux-x64
dotnet publish -r linux-x64
PublishReadyToRun包含在项目文件中,但已注释掉。 这是因为PublishReadyToRun不支持交叉编译,因此需要建立正确的目标平台上(见 )。
【文件预览】:
Netcoreapp3_Templates-master
----Netcoreapp3_Templates.csproj(2KB)
----.vscode()
--------tasks.json(890B)
----LICENSE(11KB)
----README.md(4KB)
----templates()
--------Netcoreapp31_Classlib()
--------Netcoreapp3_Mstest()
--------Netcoreapp31_Mstest()
--------Netcoreapp3_Classlib()
--------Netcoreapp3_Trimmed()
--------Netcoreapp31_Trimmed()
----.gitignore(8B)