Skip to content

Instantly share code, notes, and snippets.

@DarqueWarrior
Last active June 20, 2021 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DarqueWarrior/4a664c9ac707696cf2381d35bf3458bc to your computer and use it in GitHub Desktop.
Save DarqueWarrior/4a664c9ac707696cf2381d35bf3458bc to your computer and use it in GitHub Desktop.
Skeleton of csproj file for packing a dotnet new template into a nuget package.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Title></Title>
<Authors></Authors>
<Description></Description>
<PackageId></PackageId>
<PackageTags></PackageTags>
<PackageType>Template</PackageType>
<PackageVersion>1.0</PackageVersion>
<TargetFramework>netcoreapp3.1</TargetFramework>
<IncludeContentInPack>true</IncludeContentInPack>
<IncludeBuildOutput>false</IncludeBuildOutput>
<ContentTargetFolder>content</ContentTargetFolder>
<NoWarn>$(NoWarn);NU5128</NoWarn>
</PropertyGroup>
<ItemGroup>
<Content Include="templates\**\*" Exclude="templates\**\bin\**;templates\**\obj\**" />
<Compile Remove="**\*" />
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment