22 references to Template
Microsoft.TemplateEngine.Cli (13)
Commands\create\InstantiateCommand.cs (2)
292candidates.Select(c => c.Template), 411templateCommand.Template,
Commands\create\InstantiateCommand.Help.cs (9)
79TemplateCommand preferredTemplate = templatesToShow.OrderByDescending(x => x.Template.Precedence).First(); 81ShowTemplateDetailHeaders(preferredTemplate.Template, context.Output); 86ShowHintForOtherTemplates(templateGroup, preferredTemplate.Template, instantiateCommandArgs, context.Output); 109IEnumerable<string?> languages = matchingTemplates.Select(c => c.Template.GetLanguage()).Distinct(); 115IEnumerable<TemplateCommand> templatesForDefaultLanguage = filteredTemplates.Where(c => string.Equals(c.Template.GetLanguage(), defaultLanguage, StringComparison.OrdinalIgnoreCase)); 124matchingTemplates.Select(c => c.Template), 135matchingTemplates.Select(c => c.Template), 144IEnumerable<string?> types = filteredTemplates.Select(c => c.Template.GetTemplateType()).Distinct(); 149matchingTemplates.Select(c => c.Template),
Commands\create\TemplateCommandArgs.cs (1)
50Template = command.Template;
Commands\create\TemplateResult.cs (1)
34internal CliTemplateInfo TemplateInfo => _templateCommand.Template;
Microsoft.TemplateEngine.Cli.UnitTests (9)
ParserTests\HelpTests.Resolution.cs (2)
91Assert.Equal("Console.App.L1", filtered?.Single().Template.Identity); 121Assert.Equal("Console.App.L2", filtered?.Single().Template.Identity);
ParserTests\InstantiateTests.cs (5)
231Assert.Equal(expectedIdentities.OrderBy(s => s), templateCommands.Select(templateCommand => templateCommand.Template.Identity).OrderBy(s => s)); 617Assert.Equal("MultiName.Test.High.CSharp", templateCommands.Single().Template.Identity); 646Assert.Equal("Multiname.Test.Only.FSharp", templateCommands.Single().Template.Identity); 677Assert.Equal(expectedIdentity, templateCommands.Single().Template.Identity); 707Assert.Equal(expectedIdentity, templateCommands.Single().Template.Identity);
ParserTests\InstantiateTests.Subcommand.cs (2)
56Assert.Equal(expectedIdentities.OrderBy(s => s), templateCommands.Select(templateCommand => templateCommand.Template.Identity).OrderBy(s => s)); 288Assert.Equal(expectedIdentities.OrderBy(s => s), templateCommands.Select(templateCommand => templateCommand.Template.Identity).OrderBy(s => s));