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
Copy file name to clipboardExpand all lines: ProjectTemplates/How to create new template.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,16 @@ After making any changes do:
5
5
1. Select Release configuration for a solution
6
6
1. Select ReferenceProject in "Solution Explorer" and click "Project/Export Template..." menu item from the VS main menu
7
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
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
9
9
1. Clear checkbox "Automatically import the template into Visual Studio" if you don't want immediately import it and click Finish button
10
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
11
+
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 tag `NumberOfParentCategoriesToRollUp` to the same section with value '1': `<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>`
14
+
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
15
+
1. Copy this file to "ProjectTemplates\ReferenceProjectVSIX\ProjectTemplates\CSharp\.NET Core" folder and replace an existing one
16
16
1. Go to VS, expand a ReferenceProjectVSIX project and double click on source.extension.vsixmanifest file
17
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"
18
+
1. Rebuild the ReferenceProjectVSIX project and get "ASP.Net Core RESTful Service Template.vsix"
19
19
20
-
That's all. "ASP.Net WebAPI Application Project Template.vsix" can be uploaded to VS Marketplace or installed in VS.
20
+
That's all. "ASP.Net Core RESTful Service Template.vsix" can be uploaded to VS Marketplace or installed in VS.
0 commit comments