Skip to content

Commit

Permalink
Update NuGet-packages to latest versions and add project tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Tregub committed Aug 21, 2019
1 parent 70203a0 commit 1122344
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ProjectTemplates/How to create new template.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ After making any changes do:
1. Replace the string "ReferenceProject.xml" to "$safeprojectname$.xml" 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. Copy this file to "ProjectTemplates\ReferenceProjectVSIX\ProjectTemplates\CSharp\Web" folder and replace an existing one
1. Go to VS, expand a ReferenceProjectVSIX project and double click on a "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"
Expand Down
5 changes: 5 additions & 0 deletions ProjectTemplates/ReferenceProject/MyTemplate.vstemplate
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
<RequiredFrameworkVersion>4.7</RequiredFrameworkVersion>
<Icon>__TemplateIcon.ico</Icon>
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
<LanguageTag>C#</LanguageTag>
<PlatformTag>Windows</PlatformTag>
<ProjectTypeTag>Web</ProjectTypeTag>
<ProjectTypeTag>RESTful Service</ProjectTypeTag>
<ProjectTypeTag>WebAPI2</ProjectTypeTag>
</TemplateData>
<TemplateContent>
<Project TargetFileName="ReferenceProject.csproj" File="ReferenceProject.csproj" ReplaceParameters="true">
Expand Down
19 changes: 8 additions & 11 deletions ProjectTemplates/ReferenceProject/ReferenceProject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<Version>4.2.0</Version>
</PackageReference>
<PackageReference Include="Autofac.WebApi2">
<Version>4.2.0</Version>
<Version>4.3.0</Version>
</PackageReference>
<PackageReference Include="Autofac.WebApi2.Owin">
<Version>4.0.0</Version>
Expand All @@ -63,13 +63,13 @@
<Version>2.0.0</Version>
</PackageReference>
<PackageReference Include="AutoMapper">
<Version>8.0.0</Version>
<Version>9.0.0</Version>
</PackageReference>
<PackageReference Include="DotNetEnv">
<Version>1.2.0</Version>
</PackageReference>
<PackageReference Include="IdentityModel">
<Version>3.10.5</Version>
<Version>3.10.10</Version>
</PackageReference>
<PackageReference Include="Microsoft.AspNet.WebApi" Version="5.2.7" />
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
Expand All @@ -82,10 +82,10 @@
<Version>2.0.1</Version>
</PackageReference>
<PackageReference Include="Microsoft.Owin.Cors">
<Version>4.0.0</Version>
<Version>4.0.1</Version>
</PackageReference>
<PackageReference Include="Microsoft.Owin.Host.SystemWeb">
<Version>4.0.0</Version>
<Version>4.0.1</Version>
</PackageReference>
<PackageReference Include="Microsoft.Owin.Security">
<Version>3.1.0</Version>
Expand All @@ -96,15 +96,15 @@
<PackageReference Include="Microsoft.Owin.Security.OAuth">
<Version>3.1.0</Version>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="Owin">
<Version>1.0.0</Version>
</PackageReference>
<PackageReference Include="Serilog">
<Version>2.8.0</Version>
</PackageReference>
<PackageReference Include="Serilog.Exceptions">
<Version>5.0.0</Version>
<Version>5.3.1</Version>
</PackageReference>
<PackageReference Include="Serilog.Settings.AppSettings">
<Version>2.2.2</Version>
Expand All @@ -113,7 +113,7 @@
<Version>4.0.0</Version>
</PackageReference>
<PackageReference Include="SerilogWeb.Classic">
<Version>4.2.42</Version>
<Version>5.0.52</Version>
</PackageReference>
<PackageReference Include="Swashbuckle.Core">
<Version>5.6.0</Version>
Expand Down Expand Up @@ -141,9 +141,6 @@
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
<ItemGroup>
<Content Include="Web.config">
<SubType>Designer</SubType>
Expand Down
6 changes: 3 additions & 3 deletions ProjectTemplates/ReferenceProject/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Autofac.Integration.WebApi" publicKeyToken="17863AF14B0044DA" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0"/>
<bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Autofac" publicKeyToken="17863AF14B0044DA" culture="neutral"/>
Expand All @@ -154,11 +154,11 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31BF3856AD364E35" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed"/>
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0"/>
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="ASP.Net WebAPI Application Project Template-1" Version="1.8" Language="en-US" Publisher="Sergey Tregub" />
<Identity Id="ASP.Net WebAPI Application Project Template-1" Version="1.9" Language="en-US" Publisher="Sergey Tregub" />
<DisplayName>ASP.Net WebAPI Application Project Template</DisplayName>
<Description xml:space="preserve">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</Description>
<MoreInfo>https://github.com/drwatson1/AspNet-WebApi</MoreInfo>
Expand Down

0 comments on commit 1122344

Please sign in to comment.