Skip to content

Commit 432f053

Browse files
author
Sergey Tregub
committed
Update docs
1 parent e13b931 commit 432f053

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

ProjectTemplates/How to create new template.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ After making any changes do:
55
1. Select Release configuration for a solution
66
1. Select ReferenceProject in "Solution Explorer" and click "Project/Export Template..." menu item from the VS main menu
77
1. In the appeared dialog box select "Project template" option and "ReferenceProject" in the combobox below and click Next
8-
1. Set the value "ASP.Net Core RESTful Service" as a template name and the "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" as a description
8+
1. Set the value `ASP.Net Core RESTful Service` as a template name and the `Project template to create production-ready RESTful service based on ASP.Net Core v2.X. It contains preconfigured DI-container, logging, CORS, some boilerplate code and other features` as a description
9+
1. Don't foget to replace .Net Core version in the description above to the appropriate one.
910
1. Clear checkbox "Automatically import the template into Visual Studio" if you don't want immediately import it and click Finish button
10-
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
11+
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 2019\My Exported Templates` folder
1112
1. Open a file "MyTemplate.vstemplate"
12-
1. Replace content of the tag `DefaultName` in the section `TemplateData` to "ASPNetCore.Service" (without quotation)
13-
1. Add the following tags to tha same section:
13+
1. Replace content of the tag `DefaultName` in the section `TemplateData` to `ASPNetCore.Service`
14+
1. Add the following tags to the same section:
1415
```xml
1516
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
1617
<LanguageTag>C#</LanguageTag>
@@ -19,10 +20,12 @@ After making any changes do:
1920
<ProjectTypeTag>web</ProjectTypeTag>
2021
<ProjectTypeTag>RESTful Service</ProjectTypeTag>
2122
```
22-
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
23-
1. Copy this file to "ProjectTemplates\ReferenceProjectVSIX\ProjectTemplates\CSharp\.NET Core" folder and replace an existing one
23+
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
24+
1. Copy this file to `ProjectTemplates\ReferenceProjectVSIX\ProjectTemplates\CSharp\.NET Core` folder and replace an existing one
2425
1. Go to VS, expand a ReferenceProjectVSIX project and double click on source.extension.vsixmanifest file
2526
1. Increase minor version number on the tab "Metadata" in the top right corner
27+
1. Update template description
28+
1. Add Release Notes
2629
1. Rebuild the ReferenceProjectVSIX project and get "ASP.Net Core RESTful Service Template.vsix"
2730

2831
That's all. "ASP.Net Core RESTful Service Template.vsix" can be uploaded to VS Marketplace or installed in VS.

0 commit comments

Comments
 (0)