c# - Teamcity Nuget Pack ignore unittests -
i'm trying out teamcity , having problem nuget pack runner type. i've got build working , publishes nuget package built in nuget server. i'm able use package , ok on front.
however, i've adopted test driven development. solution contains content of nuget package contains code unit tests well. unit tests run in build steps ensure code behaving expected.
the problem unit test projects being exported nuget packages in own right! i'd team city not publish unit test projects.
in build step have following
i've tried following exlude files.
the output of build looks this...
i'd have teamcity not create cjd.linchpin.unittests.*.nupkg. it's not needed.
one last thing, i'm trying create build template i'll able reuse other projects in future. hence why i'm trying use wildcards include , excludes.
the question is, how can make nuget pack build step ignore project unittest in it's name?
i figured out answer acceptable. trick use .nuspec file. has created nuget package. can checked source control alongside project.
this allows clever things nuget package content it's driven nuspec file rather wildcards or that.



Comments
Post a Comment