Filtering out files from artifacts


I have several build configurations that build specific components of our software.

The compiled outputs are stored as build configuration artifacts.

My problem is that these artifacts contain also compiled unit test assemblies (Project.Tests.dll, etc) that i don't want to include as build artifacts.

*The built .sln file contains both the component + unit tests in the same solution, so when these get built, all of the output is copied together.
** Artifacts are copied like this: %system.OutputPath%/**/*.*  (where output path is the compilation output dir).

Is there any easy way to filter these from the build artifacts?


1 comment
Comment actions Permalink


Currently, there is no direct way to filter out files from artifacts. Please watch/vote this issue:

As a workaround, you could use more specific patterns or move tests to a separate project, so that they do not mix with production code.


Please sign in to leave a comment.