Skip to content

Commit dbfa32d

Browse files
committed
Add manual about template creation
1 parent f844adc commit dbfa32d

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# How to create new template
2+
3+
After making any changes do:
4+
5+
1. Select Release configuration for a solution
6+
1. Select ReferenceProject in "Solution Explorer" and click "Project/Export Template..." menu item from the VS main menu
7+
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 WebAPI Application with OWIN" as a template name
9+
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. Open ReferenceProject.csproj file in any text editor and find "DocumentationFile" tag
12+
1. Replace string "%24safeprojectname%24" to "$safeprojectname$" inside it and save the file
13+
1. Replace a file "MyTemplate.vstemplate" with the one from the project folder with the same name
14+
1. Add all files from the folder to zip-archive with a name "ASP.Net WebAPI Application with OWIN.zip"
15+
1. Copy this file to "ProjectTemplates\AspNet.WebApi\ReferenceProject\ReferenceProjectVSIX\ProjectTemplates\CSharp\Web" folder and replace an existing one
16+
1. Go to VS, expand a ReferenceProjectVSIX project and double click on source.extension.vsixmanifest file
17+
1. Increase minor version number on the tab "Metadata" in the top right corner
18+
1. Rebuild the ReferenceProjectVSIX project and get "ASP.Net WebAPI Application Project Template.vsix"
19+
20+
That's all. "ASP.Net WebAPI Application Project Template.vsix" can be uploaded to VS Marketplace or installed in VS.

0 commit comments

Comments
 (0)