I'm trying out Teamcity and am having a problem with the Nuget Pack runner type. I've got my build working and it publishes the Nuget Package to the built in Nuget server. I'm able to use the package and everything is ok on that front.
However, I've adopted test driven development. The solution that contains the content of my Nuget Package also contains the code for my unit tests as well. The unit tests are run in the build steps to ensure that the code is behaving as expected.
The problem is that the unit test projects are being exported as nuget packages in their own right! I'd like team city not to publish the unit test projects.
In the build step I have the following
I've tried the following exlude files.
The output of the build looks like this...
I'd like to have Teamcity not create Cjd.LinchPin.UnitTests.*.nupkg. It's not needed.
One last thing, I'm trying to create this as a build template which I'll be able to reuse for other projects in the future. Hence why I'm trying to use Wildcards for the include and excludes.
The question is, how can I make the nuget pack build step ignore any project with UnitTest in it's name?