Add NuGet sample (#20)
Per https://github.com/dotnet/docs/pull/2495#discussion_r127284220
This commit is contained in:
Родитель
d14b7ec708
Коммит
491479a4a8
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>GarciaSoftware.ConsoleTemplate.CSharp</id>
|
||||
<version>1.0.0</version>
|
||||
<description>
|
||||
Creates the Garcia Software console app.
|
||||
</description>
|
||||
<authors>Catalina Garcia</authors>
|
||||
<packageTypes>
|
||||
<packageType name="Template" />
|
||||
</packageTypes>
|
||||
</metadata>
|
||||
</package>
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"$schema": "http://json.schemastore.org/template",
|
||||
"author": "Catalina Garcia",
|
||||
"classifications": [ "Common", "Console" ],
|
||||
"identity": "GarciaSoftware.ConsoleTemplate.CSharp",
|
||||
"name": "Garcia Software Console Application",
|
||||
"shortName": "garciaconsole"
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
|
||||
namespace content
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello World!");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
|
@ -0,0 +1,6 @@
|
|||
The sample in this folder demonstrates:
|
||||
|
||||
- **How to create a NuGet-packaged template**
|
||||
|
||||
See [`GarciaSoftware.ConsoleTemplate.CSharp.nuspec`](./GarciaSoftware.ConsoleTemplate.CSharp/GarciaSoftware.ConsoleTemplate.CSharp.nuspec) and [`template.json`](./GarciaSoftware.ConsoleTemplate.CSharp/content/.template.config/template.json)
|
||||
|
Загрузка…
Ссылка в новой задаче