You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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