I'm creating a NuGet package the provides a client for my WebAPI project by reflecting over the ApiController
s and creating classes for each one with methods that correspond to the actions defined on the controller. Unfortunately the .tt
file is being included in the content folder when I run nuget.exe pack Client.csproj
. I've tried creating a .nuspec
file with a <files>
directive, but I can't seem to exclude the file by itself. Does anyone know how to force the package to exclude the T4 template?
The project structure is roughly:
Website/
Controllers/
UserController.cs
...
Client/
Client.tt
Client.cs
namespace Client
class UserService
...
And I'd like a NuGet package like:
lib/
net45/
Client.dll
namespace Client
class UserService
But I'm getting something like this:
content/
Client.tt
lib/
net45/
Client.dll
namespace Client
class UserService
...