We are using TeamCity 5.0 to build a C# solution using the sln2008 build runner. We have multiple projects that produce exe files. We want to use TeamCity's artifacts feature to flatten all the directories. We want all the files to go into one folder with no sub folders no matter which folder it came from. TeamCity keeps the directory hierarchy when it created the artifacts.
Our artifacts are created using
**\bin\Release\*.*=>PublishedFiles
What we get is
- PublishedFiles\FooProject\bin\Release\Foo.exe
- PublishedFiles\BarProject\bin\Release\Bar.exe
What we want is
- PublishedFiles\Foo.exe
- PublishedFiles\Bar.exe
EDIT
TeamCity 5.1 will get us closer.
The pattern
SomeLibrary\bin\Release\*.dll => PublishedFiles
will get us
- PublishedFiles\SomeLibrary.dll
- PublishedFiles\SomeDependency.dll
but
**\bin\Release\*.dll => PublishedFiles
Will still keep the structure that we don't want.
Currently we use MSBuild to flatten the structure and then TeamCity to archive it. It would be nice to skip the MSBuild part.