Skip to content

Commit b32abda

Browse files
authored
Merge pull request #64 from StoyanShopov/master
Introduce nuget package for the template
2 parents 968d159 + f4d5578 commit b32abda

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.nuget/.template_config/template.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "http://json.schemastore.org/template",
3+
"author": "Nikolay Kostov",
4+
"classifications": [ "ASP.NET Core", "Core", "MVC", "Template" ],
5+
"tags": {
6+
"language": "C#"
7+
},
8+
"identity": "AspNetCore.Template",
9+
"name": "ASP.NET Core Template",
10+
"shortName": "aspnet-core-template",
11+
"sourceName": "AspNetCoreTemplate",
12+
"symbols": {
13+
"skipRestore": {
14+
"type": "parameter",
15+
"datatype": "bool",
16+
"description": "If specified, skips the automatic restore of the project on create.",
17+
"defaultValue": "false"
18+
}
19+
},
20+
"sources": [
21+
{
22+
"modifiers": [
23+
{
24+
"exclude": [ "src/.vs/**", ".template_config/**" ]
25+
}
26+
]
27+
}
28+
]
29+
}

.nuget/pack.csproj

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<PackageType>Template</PackageType>
5+
<PackageVersion>1.0</PackageVersion>
6+
<PackageId>AspNetCoreTemplate</PackageId>
7+
<Title>ASP.NET-Core-Template</Title>
8+
<Authors>Nikolay Kostov</Authors>
9+
<Description>A ready-to-use template for ASP.NET Core with repositories, services, models mapping, DI and StyleCop warnings fixed.</Description>
10+
<TargetFramework>netcoreapp3.1</TargetFramework>
11+
12+
<IncludeContentInPack>true</IncludeContentInPack>
13+
<IncludeBuildOutput>false</IncludeBuildOutput>
14+
<ContentTargetFolders>content</ContentTargetFolders>
15+
<EnableDefaultItems>false</EnableDefaultItems>
16+
<NoDefaultExcludes>true</NoDefaultExcludes>
17+
</PropertyGroup>
18+
19+
<PropertyGroup>
20+
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
21+
<PackageOutputPath>./ASP.NET Core Template</PackageOutputPath>
22+
23+
<PackageTags>c#;asp.net;core;template</PackageTags>
24+
<PackageCopyright>Nikolay Kostov</PackageCopyright>
25+
<PackageProjectUrl>https://github.com/NikolayIT/ASP.NET-Core-Template</PackageProjectUrl>
26+
</PropertyGroup>
27+
28+
<ItemGroup>
29+
<Content Include="templates\**\*" Exclude="templates\**\bin\**;templates\**\obj\**" />
30+
<Compile Remove="**\*" />
31+
</ItemGroup>
32+
33+
</Project>

0 commit comments

Comments
 (0)