Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
<ToolsDir>$(RepoRoot)tools\</ToolsDir>
<ToolsTempDir>$(RepoRoot).tools\</ToolsTempDir>
<LocalizeDir>$(RepoRoot)localize\</LocalizeDir>
<TemplatesDir>$(ArtifactsDir)templates\</TemplatesDir>
<TemplatesNoTimestampDir>$(ArtifactsDir)templates-notimestamp\</TemplatesNoTimestampDir>
<TemplatesDir>$(RepoRoot)template_feed\</TemplatesDir>
<SrcDir>$(RepoRoot)src\</SrcDir>
<TestDir>$(RepoRoot)test\</TestDir>
<StrongNameKeyId>MicrosoftAspNetCore</StrongNameKeyId>
Expand Down
32 changes: 32 additions & 0 deletions Microsoft.TemplateEngine.sln
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "template-samples", "templat
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.TemplateEngine.Samples", "dotnet-template-samples\Microsoft.TemplateEngine.Samples.csproj", "{DFB06A25-719F-4C8B-B84D-55D2D601BEF6}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "template-feed", "template-feed", "{FF433F83-22C2-46E0-99B3-4FFCA5190A94}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.TemplateEngine.Authoring.Templates", "template_feed\Microsoft.TemplateEngine.Authoring.Templates\Microsoft.TemplateEngine.Authoring.Templates.csproj", "{1F74F8F5-99E4-47AE-8608-6D470325E81C}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.TemplateEngine.Authoring.Templates.IntegrationTests", "test\Microsoft.TemplateEngine.Authoring.Templates.IntegrationTests\Microsoft.TemplateEngine.Authoring.Templates.IntegrationTests.csproj", "{8651DEEB-0291-4E49-92AA-3B097DAF9D37}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -500,6 +506,30 @@ Global
{DFB06A25-719F-4C8B-B84D-55D2D601BEF6}.Release|x64.Build.0 = Release|Any CPU
{DFB06A25-719F-4C8B-B84D-55D2D601BEF6}.Release|x86.ActiveCfg = Release|Any CPU
{DFB06A25-719F-4C8B-B84D-55D2D601BEF6}.Release|x86.Build.0 = Release|Any CPU
{1F74F8F5-99E4-47AE-8608-6D470325E81C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1F74F8F5-99E4-47AE-8608-6D470325E81C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1F74F8F5-99E4-47AE-8608-6D470325E81C}.Debug|x64.ActiveCfg = Debug|Any CPU
{1F74F8F5-99E4-47AE-8608-6D470325E81C}.Debug|x64.Build.0 = Debug|Any CPU
{1F74F8F5-99E4-47AE-8608-6D470325E81C}.Debug|x86.ActiveCfg = Debug|Any CPU
{1F74F8F5-99E4-47AE-8608-6D470325E81C}.Debug|x86.Build.0 = Debug|Any CPU
{1F74F8F5-99E4-47AE-8608-6D470325E81C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1F74F8F5-99E4-47AE-8608-6D470325E81C}.Release|Any CPU.Build.0 = Release|Any CPU
{1F74F8F5-99E4-47AE-8608-6D470325E81C}.Release|x64.ActiveCfg = Release|Any CPU
{1F74F8F5-99E4-47AE-8608-6D470325E81C}.Release|x64.Build.0 = Release|Any CPU
{1F74F8F5-99E4-47AE-8608-6D470325E81C}.Release|x86.ActiveCfg = Release|Any CPU
{1F74F8F5-99E4-47AE-8608-6D470325E81C}.Release|x86.Build.0 = Release|Any CPU
{8651DEEB-0291-4E49-92AA-3B097DAF9D37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8651DEEB-0291-4E49-92AA-3B097DAF9D37}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8651DEEB-0291-4E49-92AA-3B097DAF9D37}.Debug|x64.ActiveCfg = Debug|Any CPU
{8651DEEB-0291-4E49-92AA-3B097DAF9D37}.Debug|x64.Build.0 = Debug|Any CPU
{8651DEEB-0291-4E49-92AA-3B097DAF9D37}.Debug|x86.ActiveCfg = Debug|Any CPU
{8651DEEB-0291-4E49-92AA-3B097DAF9D37}.Debug|x86.Build.0 = Debug|Any CPU
{8651DEEB-0291-4E49-92AA-3B097DAF9D37}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8651DEEB-0291-4E49-92AA-3B097DAF9D37}.Release|Any CPU.Build.0 = Release|Any CPU
{8651DEEB-0291-4E49-92AA-3B097DAF9D37}.Release|x64.ActiveCfg = Release|Any CPU
{8651DEEB-0291-4E49-92AA-3B097DAF9D37}.Release|x64.Build.0 = Release|Any CPU
{8651DEEB-0291-4E49-92AA-3B097DAF9D37}.Release|x86.ActiveCfg = Release|Any CPU
{8651DEEB-0291-4E49-92AA-3B097DAF9D37}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -540,6 +570,8 @@ Global
{EE8CD472-D8C4-4CD0-BC84-6C305F5971AE} = {43053BC4-32B4-4404-B62D-410F367CE0CE}
{449B9DDA-F18C-411E-9A74-3930652BB78A} = {B794BF86-4185-4DCE-AC86-C27D5D966B9B}
{DFB06A25-719F-4C8B-B84D-55D2D601BEF6} = {3A2D12C2-0455-4471-9EBB-91749BA3A60F}
{1F74F8F5-99E4-47AE-8608-6D470325E81C} = {FF433F83-22C2-46E0-99B3-4FFCA5190A94}
{8651DEEB-0291-4E49-92AA-3B097DAF9D37} = {8B498D0C-F488-4B38-8A7D-B20BF9DB6F60}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6EA1A508-6033-4538-BF98-7F71B4E297AD}
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference-for-template.json.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ A tutorial on how to create the template package can be find [here](https://lear
|---|---|---|
|`identity`|A unique name for this template|yes|
|`author`|The author of the template|no|
|`classifications`|Zero or more characteristics of the template which may be used in search. In this field you define the values shown as Tags in `dotnet new`|no|
|<a name="classifications"></a>`classifications`| Zero or more characteristics of the template which are shown in the tabular output of `dotnet new list` and `dotnet new search` as "Tags". It is possible to filter the templates based on them using `--tag` option. In Visual Studio those items are shown in New Project Dialog in the available list of templates together with template name, description and language. Common classifications are: `Library`, `Test`, `Web` etc. |no|
|`name`|The name for the template. This is displayed as the template name when using `dotnet new` and Visual Studio.|yes|
|`groupIdentity`|The ID of the group this template belongs to. This allows multiple templates to be displayed as one, with the the decision for which one to use based on the template options. |no|
|`tags`|You can use tags to improve the metadata of your project. Well-known tags are: `language` and `type`. To specify the template language, use the tag `language`. To specify the template type, use the tag `type`. Supported types are: `project`, `item`, `solution`.|no|
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(NETCoreTargetFramework)</TargetFramework>
<IncludeBuildOutput>False</IncludeBuildOutput>
<IncludeSource>False</IncludeSource>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<OutputPath>$(ArtifactsTmpDir)</OutputPath>
<EnableDefaultItems>False</EnableDefaultItems>
<UsingToolTemplateLocalizer>true</UsingToolTemplateLocalizer>
<IsPackable>true</IsPackable>
<IsShipping>true</IsShipping>
<IsShippingPackage>true</IsShippingPackage>
<NoWarn>2008;NU5105</NoWarn>
<NoPackageAnalysis>true</NoPackageAnalysis>
<PackageId>Microsoft.TemplateEngine.Authoring.Templates</PackageId>
<Authors>Microsoft</Authors>
<Description>The templates for useful items and projects for template authoring.</Description>
<language>en-US</language>
<PackageProjectUrl>https://github.com/dotnet/templating</PackageProjectUrl>
<PackageType>Template</PackageType>
<SuppressDependenciesWhenPacking>True</SuppressDependenciesWhenPacking>
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
</PropertyGroup>
<ItemGroup>
<PackageReference Remove="Microsoft.NETCore.App" />
<Content Include="content\**">
<PackagePath>content</PackagePath>
</Content>
</ItemGroup>
<ItemGroup>
<Content Remove="content\README.md" />
</ItemGroup>
<ItemGroup>
<None Include="README.md" />
</ItemGroup>
<ItemGroup>
<Folder Include="content\TemplatePackage\.template.config\localize\" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## The templates for template authoring

The package contains the templates useful for the template authoring:
| Template name | Short name | Description|
|---|---|---|
|`template.json` configuration file|`template.json`|A template for template.json configuration file for .NET template.|
|Template Package|`template-package`|A project for creating template package containing .NET templates.|

The package is available for download from nuget.org.
Please feel to contribute or provide the feedback in discussions or via opening the issue in dotnet/templating repo.
Comment thread
vlada-shubina marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "http://json.schemastore.org/dotnetcli.host",
"symbolInfo": {
"CreateTemplateConfigFolder": {
"longName": "create-template-config-folder",
"shortName": ""
},
"TemplateName": {
"longName": "template-name",
"shortName": "tn"
},
"TemplateShortName": {
"longName": "short-name",
"shortName": "sn"
},
"TemplateIdentity": {
"longName": "template-identity",
"shortName": "ti"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"author": "Microsoft",
"name": "template.json",
"description": "A template for template.json configuration file for .NET template.",
"symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.",
"symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder",
"symbols/TemplateName/description": "The template name.",
"symbols/TemplateName/displayName": "Template name",
"symbols/TemplateShortName/description": "The template short name.",
"symbols/TemplateShortName/displayName": "Template short name",
"symbols/TemplateIdentity/description": "The template identity (should be unique).",
"symbols/TemplateIdentity/displayName": "Template identity",
"postActions/instructions/description": "Manual actions required",
"postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"author": "Microsoft",
"name": "template.json",
"description": "A template for template.json configuration file for .NET template.",
"symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.",
"symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder",
"symbols/TemplateName/description": "The template name.",
"symbols/TemplateName/displayName": "Template name",
"symbols/TemplateShortName/description": "The template short name.",
"symbols/TemplateShortName/displayName": "Template short name",
"symbols/TemplateIdentity/description": "The template identity (should be unique).",
"symbols/TemplateIdentity/displayName": "Template identity",
"postActions/instructions/description": "Manual actions required",
"postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"author": "Microsoft",
"name": "template.json configuration file",
"description": "A template for template.json configuration file for .NET template. See https://github.com/dotnet/templating/wiki/Reference-for-template.json for complete configuration description",
"symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.",
"symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder",
"symbols/TemplateName/description": "The template name.",
"symbols/TemplateName/displayName": "Template name",
"symbols/TemplateShortName/description": "The template short name.",
"symbols/TemplateShortName/displayName": "Template short name",
"symbols/TemplateIdentity/description": "The template identity (should be unique).",
"symbols/TemplateIdentity/displayName": "Template identity",
"postActions/instructions/description": "Manual actions required",
"postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"author": "Microsoft",
"name": "template.json",
"description": "A template for template.json configuration file for .NET template.",
"symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.",
"symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder",
"symbols/TemplateName/description": "The template name.",
"symbols/TemplateName/displayName": "Template name",
"symbols/TemplateShortName/description": "The template short name.",
"symbols/TemplateShortName/displayName": "Template short name",
"symbols/TemplateIdentity/description": "The template identity (should be unique).",
"symbols/TemplateIdentity/displayName": "Template identity",
"postActions/instructions/description": "Manual actions required",
"postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"author": "Microsoft",
"name": "template.json",
"description": "A template for template.json configuration file for .NET template.",
"symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.",
"symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder",
"symbols/TemplateName/description": "The template name.",
"symbols/TemplateName/displayName": "Template name",
"symbols/TemplateShortName/description": "The template short name.",
"symbols/TemplateShortName/displayName": "Template short name",
"symbols/TemplateIdentity/description": "The template identity (should be unique).",
"symbols/TemplateIdentity/displayName": "Template identity",
"postActions/instructions/description": "Manual actions required",
"postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"author": "Microsoft",
"name": "template.json",
"description": "A template for template.json configuration file for .NET template.",
"symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.",
"symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder",
"symbols/TemplateName/description": "The template name.",
"symbols/TemplateName/displayName": "Template name",
"symbols/TemplateShortName/description": "The template short name.",
"symbols/TemplateShortName/displayName": "Template short name",
"symbols/TemplateIdentity/description": "The template identity (should be unique).",
"symbols/TemplateIdentity/displayName": "Template identity",
"postActions/instructions/description": "Manual actions required",
"postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"author": "Microsoft",
"name": "template.json",
"description": "A template for template.json configuration file for .NET template.",
"symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.",
"symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder",
"symbols/TemplateName/description": "The template name.",
"symbols/TemplateName/displayName": "Template name",
"symbols/TemplateShortName/description": "The template short name.",
"symbols/TemplateShortName/displayName": "Template short name",
"symbols/TemplateIdentity/description": "The template identity (should be unique).",
"symbols/TemplateIdentity/displayName": "Template identity",
"postActions/instructions/description": "Manual actions required",
"postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"author": "Microsoft",
"name": "template.json",
"description": "A template for template.json configuration file for .NET template.",
"symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.",
"symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder",
"symbols/TemplateName/description": "The template name.",
"symbols/TemplateName/displayName": "Template name",
"symbols/TemplateShortName/description": "The template short name.",
"symbols/TemplateShortName/displayName": "Template short name",
"symbols/TemplateIdentity/description": "The template identity (should be unique).",
"symbols/TemplateIdentity/displayName": "Template identity",
"postActions/instructions/description": "Manual actions required",
"postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"author": "Microsoft",
"name": "template.json",
"description": "A template for template.json configuration file for .NET template.",
"symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.",
"symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder",
"symbols/TemplateName/description": "The template name.",
"symbols/TemplateName/displayName": "Template name",
"symbols/TemplateShortName/description": "The template short name.",
"symbols/TemplateShortName/displayName": "Template short name",
"symbols/TemplateIdentity/description": "The template identity (should be unique).",
"symbols/TemplateIdentity/displayName": "Template identity",
"postActions/instructions/description": "Manual actions required",
"postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"author": "Microsoft",
"name": "template.json",
"description": "A template for template.json configuration file for .NET template.",
"symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.",
"symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder",
"symbols/TemplateName/description": "The template name.",
"symbols/TemplateName/displayName": "Template name",
"symbols/TemplateShortName/description": "The template short name.",
"symbols/TemplateShortName/displayName": "Template short name",
"symbols/TemplateIdentity/description": "The template identity (should be unique).",
"symbols/TemplateIdentity/displayName": "Template identity",
"postActions/instructions/description": "Manual actions required",
"postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"author": "Microsoft",
"name": "template.json",
"description": "A template for template.json configuration file for .NET template.",
"symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.",
"symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder",
"symbols/TemplateName/description": "The template name.",
"symbols/TemplateName/displayName": "Template name",
"symbols/TemplateShortName/description": "The template short name.",
"symbols/TemplateShortName/displayName": "Template short name",
"symbols/TemplateIdentity/description": "The template identity (should be unique).",
"symbols/TemplateIdentity/displayName": "Template identity",
"postActions/instructions/description": "Manual actions required",
"postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration."
}
Loading