Skip to content

Commit 8f21c91

Browse files
author
Sergey Tregub
committed
Add filter tags to the template and inc version
1 parent db331a0 commit 8f21c91

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

ProjectTemplates/How to create new template.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ After making any changes do:
1010
1. Extract all files from the created zip-archive to any folder as you want. Typically, the file can be found in "C:\Users\<YOU>\Documents\Visual Studio 2017\My Exported Templates" folder
1111
1. Open a file "MyTemplate.vstemplate"
1212
1. Replace content of the tag `DefaultName` in the section `TemplateData` to "ASPNetCore.Service" (without quotation)
13-
1. Add tag `NumberOfParentCategoriesToRollUp` to the same section with value '1': `<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>`
13+
1. Add the following tags to tha same section:
14+
```xml
15+
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
16+
<LanguageTag>C#</LanguageTag>
17+
<PlatformTag>windows</PlatformTag>
18+
<PlatformTag>linux</PlatformTag>
19+
<ProjectTypeTag>web</ProjectTypeTag>
20+
<ProjectTypeTag>RESTful Service</ProjectTypeTag>
21+
```
1422
1. Add all files from the folder to zip-archive with a name "ASP.Net Core RESTful Service.zip". All added files must be in the root of the archive
1523
1. Copy this file to "ProjectTemplates\ReferenceProjectVSIX\ProjectTemplates\CSharp\.NET Core" folder and replace an existing one
1624
1. Go to VS, expand a ReferenceProjectVSIX project and double click on source.extension.vsixmanifest file

ProjectTemplates/ReferenceProjectVSIX/source.extension.vsixmanifest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="ASP.Net Core RESTful Service Template-1" Version="1.1" Language="en-US" Publisher="Sergey Tregub" />
4+
<Identity Id="ASP.Net Core RESTful Service Template-1" Version="1.2" Language="en-US" Publisher="Sergey Tregub" />
55
<DisplayName>ASP.Net Core RESTful Service Template</DisplayName>
66
<Description xml:space="preserve">Project template to create production-ready RESTful service based on ASP.Net Core. It contains preconfigured DI-container, logging, CORS, some boilerplate code and other features</Description>
77
<MoreInfo>https://github.com/drwatson1/AspNet-Core-REST-Service</MoreInfo>
88
<GettingStartedGuide>https://github.com/drwatson1/AspNet-Core-REST-Service/wiki</GettingStartedGuide>
99
<Icon>Assets\logo.png</Icon>
10-
<Tags>asp-net-core restful-api vs2017 visual-studio project-template</Tags>
10+
<Tags>asp-net-core restful-api vs2017 vs2019 visual-studio project-template</Tags>
1111
</Metadata>
1212
<Installation>
1313
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0, 17.0)" />

0 commit comments

Comments
 (0)