diff --git a/ProjectTemplates/AspNet.WebApi/How to create new template.md b/ProjectTemplates/AspNet.WebApi/How to create new template.md new file mode 100644 index 0000000..1b201ae --- /dev/null +++ b/ProjectTemplates/AspNet.WebApi/How to create new template.md @@ -0,0 +1,20 @@ +# How to create new template + +After making any changes do: + +1. Select Release configuration for a solution +1. Select ReferenceProject in "Solution Explorer" and click "Project/Export Template..." menu item from the VS main menu +1. In the appeared dialog box select "Project template" option and "ReferenceProject" in the combobox below and click Next +1. Set the value "ASP.Net WebAPI Application with OWIN" as a template name +1. Clear checkbox "Automatically import the template into Visual Studio" if you don't want immediately import it and click Finish button +1. Extract all files from the created zip-archive to any folder as you want. Typically, the file can be found in "C:\Users\\Documents\Visual Studio 2017\My Exported Templates" folder +1. Open ReferenceProject.csproj file in any text editor and find "DocumentationFile" tag +1. Replace string "%24safeprojectname%24" to "$safeprojectname$" inside it and save the file +1. Replace a file "MyTemplate.vstemplate" with the one from the project folder with the same name +1. Add all files from the folder to zip-archive with a name "ASP.Net WebAPI Application with OWIN.zip" +1. Copy this file to "ProjectTemplates\AspNet.WebApi\ReferenceProject\ReferenceProjectVSIX\ProjectTemplates\CSharp\Web" folder and replace an existing one +1. Go to VS, expand a ReferenceProjectVSIX project and double click on source.extension.vsixmanifest file +1. Increase minor version number on the tab "Metadata" in the top right corner +1. Rebuild the ReferenceProjectVSIX project and get "ASP.Net WebAPI Application Project Template.vsix" + +That's all. "ASP.Net WebAPI Application Project Template.vsix" can be uploaded to VS Marketplace or installed in VS. \ No newline at end of file diff --git a/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProject/ReferenceProject.csproj b/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProject/ReferenceProject.csproj index ad8cabe..c3f26c7 100644 --- a/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProject/ReferenceProject.csproj +++ b/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProject/ReferenceProject.csproj @@ -63,13 +63,13 @@ 2.0.0 - 7.0.1 + 8.0.0 - 1.1.0 + 1.2.0 - 3.7.1 + 3.10.2 @@ -78,6 +78,9 @@ 5.2.6 + + 2.0.1 + 4.0.0 @@ -104,7 +107,7 @@ 4.1.0 - 2.1.2 + 2.2.2 4.0.0 diff --git a/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProject/Web.config b/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProject/Web.config index 0bb985a..83ef08c 100644 --- a/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProject/Web.config +++ b/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProject/Web.config @@ -176,8 +176,8 @@ - - + + diff --git a/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProjectVSIX/ProjectTemplates/CSharp/Web/ASP.Net WebAPI Application with OWIN.zip b/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProjectVSIX/ProjectTemplates/CSharp/Web/ASP.Net WebAPI Application with OWIN.zip index 30f42d1..4ab08b4 100644 Binary files a/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProjectVSIX/ProjectTemplates/CSharp/Web/ASP.Net WebAPI Application with OWIN.zip and b/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProjectVSIX/ProjectTemplates/CSharp/Web/ASP.Net WebAPI Application with OWIN.zip differ diff --git a/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProjectVSIX/source.extension.vsixmanifest b/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProjectVSIX/source.extension.vsixmanifest index b717b68..2794b48 100644 --- a/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProjectVSIX/source.extension.vsixmanifest +++ b/ProjectTemplates/AspNet.WebApi/ReferenceProject/ReferenceProjectVSIX/source.extension.vsixmanifest @@ -1,7 +1,7 @@ - + ASP.Net WebAPI Application Project Template Project template to create production-ready RESTful service based on ASP.Net WebAPI and OWIN. It contains preconfigured DI-container, logging, CORS, JWT-bearer authentication, boilerplate code and other features https://github.com/drwatson1/AspNet-WebApi