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

Samples showing how to create templates using the Template Engine for dotnet new and Visual Studio

Results 20 dotnet-template-samples issues
Sort by recently updated
recently updated
newest added

Hi, I'm creating a template with 2 projects (src and test) and would like to publish this as a nuget package. I understand that it is easy modifying the .csproj...

Is it possible for a template parameter value to have a regex validation attached to prevent/validate the values supplied; an or display a validation error if/when the value supplied violates...

Please provide an example of how the templates can be installed using VSIX and integrated/used from within VisualStudio 2017 & 2019; file->new project etc. including adding templates to the ASP.NET...

Add primaryOutputs to all templates

Create a template which is https://github.com/dotnet/dotnet-template-samples/tree/master/05-multi-project plus a solution file. Since the unit test is optional this will also show optional content in the .sln file.

help wanted

I'm looking to use `dotnet new` to help template both old VS solutions and new dotnet type projects. See also: [VS Solution File](https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/solution-dot-sln-file?view=vs-2017) When manipulating an `.sln` for inclusion of...

Is there a way to make a parameter defaultValue conditional/based on an expression? I want to have ``` "fileToRename": { "type": "parameter", "datatype": "string", "defaultValue": "if(boolParam) then TheSpecialFile.txt else TheFile.txt",...