Skip to content

vit-h-zz/simple-NuGet-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simple-NuGet-template

Here is an example for NuGet template creation, see article How to create a template in .NET for a C# application and what NuGet is for

To create template open the command line and execute the following commands:

C:\nuget.exe pack C:\Temp\SuperApp\SuperApp.ConsoleTemplate.CSharp.nuspec -OutputDirectory C:\Temp

dotnet new --install C:\Temp\SuperApp.ConsoleTemplate.CSharp.0.0.1.nupkg

dotnet new shwa -o C:\Temp\MyApp

cd C:\Temp\MyApp

dotnet run

image

image

image

So, what we did with these commands?

we packed the template to NuGet package by the instructions provided in the .nuspec file then we installed the template from the NuGet package to the dotnet, we need to check it works we created an application from the newly installed template then we ran it to check that it works lastly, we see that console output, the folder and application renamed to the new name we provided in the command

Releases

No releases published

Packages

No packages published

Languages