ZyServiceTemplate 1.0.0.2

dotnet add package ZyServiceTemplate --version 1.0.0.2
                    
NuGet\Install-Package ZyServiceTemplate -Version 1.0.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ZyServiceTemplate" Version="1.0.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ZyServiceTemplate" Version="1.0.0.2" />
                    
Directory.Packages.props
<PackageReference Include="ZyServiceTemplate" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ZyServiceTemplate --version 1.0.0.2
                    
#r "nuget: ZyServiceTemplate, 1.0.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ZyServiceTemplate@1.0.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ZyServiceTemplate&version=1.0.0.2
                    
Install as a Cake Addin
#tool nuget:?package=ZyServiceTemplate&version=1.0.0.2
                    
Install as a Cake Tool

3.1 安装模板 将生成的 .nupkg 文件安装到本地 NuGet 源。在命令行中执行以下命令: bash dotnet new -i path\to\MyProjectTemplate.1.0.0.nupkg 其中 path\to\ 是 .nupkg 文件的实际路径。

如果需要卸载模板,可以使用以下命令: bash dotnet new -u MyProjectTemplate 其中 MyProjectTemplate 是 template.json 中定义的 identity。 通过以上步骤,你就可以成功制作并使用一个基于 NuGet 的项目模板。

安装 dotnet new -i ZyServiceTemplate 卸载 dotnet new -u ZyServiceTemplate

创建 dotnet new ZyService -n NewProjectName

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0.2 42 6/17/2026