I publish a .NET Standard class library as a package on MyGet feed by selecting “Generate NuGet Package on Build” in project settings and using MyGet building service. My Cds.IoC.csprj
looks like this:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>Cds.IoC</RootNamespace>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>...</Authors>
<Company>...</Company>
<Product>...</Product>
<Description>...</Description>
<Copyright>© 2018</Copyright>
<PackageTags>...</PackageTags>
<PackageReleaseNotes>...</PackageReleaseNotes>
<AssemblyVersion>0.0.0.1</AssemblyVersion>
<FileVersion>0.0.0.1</FileVersion>
<Version>1.0.1-alpha</Version>
</PropertyGroup>
</Project>
How can I add a Text Template Some.tt
file to the package, so it will show up in the referencing project? I would not like it to generate output on package build; just looking for a way to automatically add the TT file to the referencing project.