Skip to content

Commit 5df5712

Browse files
committed
Introduce nuget package for the template
1 parent e3f2c4d commit 5df5712

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed

.nuget/.template_config/template.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"$schema": "http://json.schemastore.org/template",
3+
"author": "Nikolay Kostov & Vladislav Karamfilov",
4+
"classifications": [ "ASP.NET Core", "Core", "MVC", "Template" ],
5+
"tags": {
6+
"language": "C#"
7+
},
8+
"identity": "AspNetCore.Temaplate",
9+
"name": "ASP.NET Core Temaplate",
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+
"include": [
26+
"VisualStudio.gitignore"
27+
],
28+
"rename": {
29+
"VisualStudio.gitignore": ".gitignore"
30+
}
31+
}
32+
]
33+
}
34+
]
35+
}

.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>AspNetCore.Template</PackageId>
7+
<Title>Markdown Monster Addin Project Template</Title>
8+
<Authors>Nikolay Kostov аnd Vladislav Karamfilov</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+
</PropertyGroup>
17+
18+
<PropertyGroup>
19+
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
20+
<PackageOutputPath>./ASP.NET Core Template</PackageOutputPath>
21+
22+
<PackageTags>c#;asp.net;core;template</PackageTags>
23+
<PackageCopyright>Nikolay Kostov</PackageCopyright>
24+
<PackageProjectUrl>https://github.com/NikolayIT/ASP.NET-Core-Template</PackageProjectUrl>
25+
</PropertyGroup>
26+
27+
<ItemGroup>
28+
<Content Include="templates\**\*" Exclude="templates\**\bin\**;templates\**\obj\**" />
29+
<Content Remove="templates\tools\**\*" />
30+
<Compile Remove="**\*" />
31+
</ItemGroup>
32+
33+
</Project>
Binary file not shown.

0 commit comments

Comments
 (0)