Skip to content

Commit

Permalink
Added Nuspec and template files
Browse files Browse the repository at this point in the history
  • Loading branch information
madskristensen committed Oct 24, 2017
1 parent 9a96ae6 commit 2a5b28d
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 1 deletion.
21 changes: 21 additions & 0 deletions build/MadsKristensen.AspNetCore.PhotoGallery.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<package>
<metadata>
<id>MadsKristensen.AspNetCore.PhotoGallery</id>
<title>ASP.NET Core PhotoGallery</title>
<summary>A high-performance photo gallery using ASP.NET Core MVC and the latest in client-side technologies.</summary>
<version>1.0.0</version>
<description>A high-performance photo gallery using ASP.NET Core MVC and the latest in client-side technologies.</description>
<authors>Mads Kristensen</authors>
<projectUrl>https://github.com/madskristensen/PhotoGallery</projectUrl>
<tags>asp.net core .net template</tags>
<iconUrl>https://raw.githubusercontent.com/madskristensen/PhotoGallery/master/src/.template.config/icon.png</iconUrl>
<packageTypes>
<packageType name="Template" />
</packageTypes>
</metadata>

<files>
<file src="..\src\**\*.*" exclude="**\bin\**\*;**\obj\**\*;properties\**\*;**\*.user" target="content\PhotoGallery" />
</files>
</package>
6 changes: 6 additions & 0 deletions build/build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
echo off

pushd .
cd %~dp0%
nuget pack
popd
Binary file added build/nuget.exe
Binary file not shown.
Binary file added src/.template.config/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions src/.template.config/template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"author": "Mads Kristensen",
"classifications": [ "Web", "MVC" ],
"name": "PhotoGallery.Core",
"defaultName": "WebApplication1",
"identity": "madsk.photogallery.core",
"groupIdentity": "madsk.photogallery.core",
"shortName": "gallery",
"sources": [
{
"exclude": [ "Properties/**/*", "**/[Bb]in/**", "**/[Oo]bj/**", ".template.config/**/*", "**/*.filelist", "**/*.user", "**/*.lock.json" ]
}
],
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "PhotoGallery",
"preferNameDirectory": true,
"primaryOutputs": [ { "path": "PhotoGallery.csproj" } ],
"symbols": {
"Framework": {
"type": "parameter",
"description": "The target framework for the project.",
"datatype": "choice",
"choices": [
{
"choice": "netcoreapp2.0",
"description": "Target netcoreapp2.0"
}
],
"defaultValue": "netcoreapp2.0"
}
}
}
13 changes: 13 additions & 0 deletions src/.template.config/vs-2017.3.host.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": {
"text": "PhotoGallery"
},
"description": {
"text": "A high-performance photo gallery using ASP.NET Core MVC and the latest in client-side technologies."
},
"order": 1000,
"icon": "icon.png",
"learnMoreLink": "url",
"uiFilters": [ "oneaspnet" ],
"supportsDocker": true
}
1 change: 0 additions & 1 deletion src/PhotoGallery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<MvcRazorCompileOnPublish>true</MvcRazorCompileOnPublish>
<PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 2a5b28d

Please sign in to comment.