Skip to content

Commit 66e15cc

Browse files
author
Сергей Трегуб
committed
Support of NuGet packaging as a project template
1 parent 4444392 commit 66e15cc

3 files changed

Lines changed: 22 additions & 9 deletions

File tree

ProjectTemplates/ReferenceProject/.template.config/template.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"$schema": "http://json.schemastore.org/template",
33
"author": "Sergey Tregub",
4-
"classifications": [ "Web", "WebAPI" ],
4+
"classifications": [ "Web", "WebAPI", "REST"],
55
"name": "ASP.Net Core RESTful Service",
6-
"identity": "DrWatson1.ProjectTemplate.ASP.Net.Core.WebAPI",
6+
"identity": "DrWatson1.ProjectTemplate.RestAPI",
77
"groupIdentity": "DrWatson1.ProjectTemplate",
88
"shortName": "rest-api",
99
"tags": {

ProjectTemplates/ReferenceProject/ReferenceProject.csproj

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<TargetFramework>netcoreapp3.1</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<AspNetCoreModuleName>AspNetCoreModuleV2</AspNetCoreModuleName>
7-
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
87
</PropertyGroup>
98

109
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@@ -30,8 +29,22 @@
3029
<None Remove="wwwroot\**" />
3130
</ItemGroup>
3231

32+
<PropertyGroup>
33+
<PackageType>Template</PackageType>
34+
<PackageVersion>2.6</PackageVersion>
35+
<PackageId>AdatumCorporation.Utility.Templates</PackageId>
36+
<Title>ASP.Net Core RESTful Service Template</Title>
37+
<Authors>Sergey Tregub</Authors>
38+
<Description>Project template to create production-ready RESTful service based on ASP.Net Core v3.1 or 5.0. It contains preconfigured DI-container, logging, CORS, some boilerplate code and other features</Description>
39+
<PackageTags>dotnet-new;templates;webapi;web;rest-api</PackageTags>
40+
41+
<IncludeContentInPack>true</IncludeContentInPack>
42+
<IncludeBuildOutput>false</IncludeBuildOutput>
43+
<ContentTargetFolders>content</ContentTargetFolders>
44+
</PropertyGroup>
45+
3346
<ItemGroup>
34-
<Content Include=".template.config\template.json" />
47+
<Content Include=".template.config\template.json" Exclude="**\bin\**;**\obj\**"/>
3548
</ItemGroup>
3649

3750
<ItemGroup>

ProjectTemplates/ReferenceProjectVSIX/source.extension.vsixmanifest

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<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">
33
<Metadata>
4-
<Identity Id="ASP.Net Core RESTful Service Template-1" Version="2.5" Language="en-US" Publisher="Sergey Tregub" />
5-
<DisplayName>ASP.Net Core 3.1 RESTful Service Template</DisplayName>
6-
<Description xml:space="preserve">Project template to create production-ready RESTful service based on ASP.Net Core 3.1. It contains preconfigured DI-container, logging, CORS, some boilerplate code and other features</Description>
4+
<Identity Id="ASP.Net Core RESTful Service Template-1" Version="2.6" Language="en-US" Publisher="Sergey Tregub" />
5+
<DisplayName>ASP.Net Core 3.1/5.0 RESTful Service Template</DisplayName>
6+
<Description xml:space="preserve">Project template to create production-ready RESTful service based on ASP.Net Core 3.1 or 5.0. It contains preconfigured DI-container, logging, CORS, some boilerplate code and other features</Description>
77
<MoreInfo>https://github.com/drwatson1/AspNet-Core-REST-Service</MoreInfo>
88
<GettingStartedGuide>https://github.com/drwatson1/AspNet-Core-REST-Service/wiki</GettingStartedGuide>
9-
<ReleaseNotes>Minor fixes</ReleaseNotes>
9+
<ReleaseNotes>Support of .Net Core 5.0 and dotnet new custom template</ReleaseNotes>
1010
<Icon>Assets\logo.png</Icon>
11-
<Tags>asp-net-core restful-api vs2017 vs2019 visual-studio project-template</Tags>
11+
<Tags>asp-net-core restful-api vs2017 vs2019 visual-studio project-template web-api</Tags>
1212
</Metadata>
1313
<Installation>
1414
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0, 17.0)" />

0 commit comments

Comments
 (0)