Skip to content

Instantly share code, notes, and snippets.

@robconery
Last active November 17, 2023 05:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robconery/6182bcdc532a54b2f47b2e969a05cfcc to your computer and use it in GitHub Desktop.
Save robconery/6182bcdc532a54b2f47b2e969a05cfcc to your computer and use it in GitHub Desktop.
.NET Template JSON
"nuget": {
"prefix": "nuget",
"body": [
"\t<PropertyGroup>\t\t",
"\t\t<PackageId>$1</PackageId>",
"\t\t<PackageVersion>1.0</PackageVersion>",
"\t\t<Title>$2</Title>",
"\t\t<Authors>Rob Conery</Authors>",
"\t\t<Description>$3</Description>",
"\t\t<PackageTags>dotnet;</PackageTags>",
"\t\t<PackageProjectUrl>$4</PackageProjectUrl>",
"",
"\t\t<PackageType>Template</PackageType>",
"\t\t<TargetFramework>netstandard2.0</TargetFramework>\t\t",
"\t\t<IncludeContentInPack>true</IncludeContentInPack>",
"\t\t<IncludeBuildOutput>false</IncludeBuildOutput>",
"\t\t<ContentTargetFolders>content</ContentTargetFolders>",
"\t\t<NoWarn>\\$(NoWarn);NU5128</NoWarn>",
"\t\t<NoDefaultExcludes>true</NoDefaultExcludes>",
"\t</PropertyGroup>",
"",
"\t<ItemGroup>",
"\t\t<Content Include=\"templates\\**\\*\" Exclude=\"templates\\**\\bin\\**;templates\\**\\obj\\**\" />",
"\t\t<Compile Remove=\"**\\*\" />",
"\t</ItemGroup>"
],
"description": "Nuget package spec"
}
"template": {
"prefix": "template",
"body": [
"{",
"\t\"\\$schema\": \"http://json.schemastore.org/template\",",
"\t\"author\": \"Rob Conery\",",
"\t\"defaultName\" : \"$1\",",
"\t\"repository\": {",
"\t\t\"url\": \"https://github.com/$2\",",
"\t\t\"type\": \"GitHub\"",
"\t},",
"\t\"projectURL\": \"https://github.com/$2\",",
"\t\"releaseNotes\": \"$3\",",
"\t\"classifications\": [ \"Web\", \"Application\" ],",
"\t\"identity\": \"$4\",",
"\t\"name\": \"$5\",",
"\t\"shortName\": \"$6\",",
"\t\"sourceName\":\"$4\",",
"\t\"tags\": {",
"\t\t\"language\": \"C#\",",
"\t\t\"type\": \"project\"",
"\t},",
"\t\"preferNameDirectory\":true",
"}"
],
"description": "JSON template"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment