dotnet-template-samples icon indicating copy to clipboard operation
dotnet-template-samples copied to clipboard

Packaging templates as a nupkg

Open pierceboggan opened this issue 8 years ago • 3 comments
trafficstars

I'm not aware of any documentation and/or samples on how to package up a group of templates as a nupkg (though we do have documentation on actually installing from a nupkg in the dotnet/templating README).

pierceboggan avatar Jun 19 '17 20:06 pierceboggan

Let me chat with @mlorbetske on this one. On windows you can use nuget.exe to package a nuget package with a .nuspec. For xplat support I think it gets much more complicated to produce that package.

sayedihashimi avatar Jun 23 '17 15:06 sayedihashimi

From @mlorbetske I have heard that @mhutch may have something that we can use to create nuget packages in a cross platform friendly way.

sayedihashimi avatar Jun 23 '17 16:06 sayedihashimi

Yep you can use NuGetizer.

Here's an example: https://gist.github.com/mhutch/075c97186d3f709bbc79213c68a46b7e

Just build the Pack target or set the PackOnBuild property to true.

mhutch avatar Jun 23 '17 22:06 mhutch