Skip to content

Commit

Permalink
Add filter tags to the template and inc version
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Tregub committed Aug 22, 2019
1 parent db331a0 commit 8f21c91
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion ProjectTemplates/How to create new template.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ After making any changes do:
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
1. Open a file "MyTemplate.vstemplate"
1. Replace content of the tag `DefaultName` in the section `TemplateData` to "ASPNetCore.Service" (without quotation)
1. Add tag `NumberOfParentCategoriesToRollUp` to the same section with value '1': `<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>`
1. Add the following tags to tha same section:
```xml
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
<LanguageTag>C#</LanguageTag>
<PlatformTag>windows</PlatformTag>
<PlatformTag>linux</PlatformTag>
<ProjectTypeTag>web</ProjectTypeTag>
<ProjectTypeTag>RESTful Service</ProjectTypeTag>
```
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
1. Copy this file to "ProjectTemplates\ReferenceProjectVSIX\ProjectTemplates\CSharp\.NET Core" folder and replace an existing one
1. Go to VS, expand a ReferenceProjectVSIX project and double click on source.extension.vsixmanifest file
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<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">
<Metadata>
<Identity Id="ASP.Net Core RESTful Service Template-1" Version="1.1" Language="en-US" Publisher="Sergey Tregub" />
<Identity Id="ASP.Net Core RESTful Service Template-1" Version="1.2" Language="en-US" Publisher="Sergey Tregub" />
<DisplayName>ASP.Net Core RESTful Service Template</DisplayName>
<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>
<MoreInfo>https://github.com/drwatson1/AspNet-Core-REST-Service</MoreInfo>
<GettingStartedGuide>https://github.com/drwatson1/AspNet-Core-REST-Service/wiki</GettingStartedGuide>
<Icon>Assets\logo.png</Icon>
<Tags>asp-net-core restful-api vs2017 visual-studio project-template</Tags>
<Tags>asp-net-core restful-api vs2017 vs2019 visual-studio project-template</Tags>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0, 17.0)" />
Expand Down

0 comments on commit 8f21c91

Please sign in to comment.