Skip to content

Commit 78b3931

Browse files
author
Сергей Трегуб
committed
Update HowTo
1 parent c9a3051 commit 78b3931

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

ProjectTemplates/How to create new template.md renamed to ProjectTemplates/How to create a new template.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
After making any changes do:
44

5+
**Create a VSIX project template:**
56
1. Select Release configuration for a solution
67
1. Select ReferenceProject in "Solution Explorer" and click "Project/Export Template..." menu item from the VS main menu
78
1. In the appeared dialog box select "Project template" option and "ReferenceProject" in the combobox below and click Next
@@ -28,4 +29,16 @@ After making any changes do:
2829
1. Add Release Notes
2930
1. Rebuild the ReferenceProjectVSIX project and get "ASP.Net Core RESTful Service Template.vsix"
3031

32+
**Create a .Net Core Custom template**
33+
1. Open the `DrWatson1.ProjectTemplate.RestAPI.csproj`
34+
1. Update a package version in the `PackageVersion` tag
35+
1. Update a description in the `Description` tag when needed
36+
1. Update release notes in the `PackageReleaseNotes` tag
37+
1. Open a command prompt and go to the "ProjectTemplates" folder
38+
1. Execute the command:
39+
40+
```
41+
dotnet pack DrWatson1.ProjectTemplate.RestAPI.csproj -c Release
42+
```
43+
3144
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)