How do you get TeamCity to smooth out a directory when it creates artifacts

We use TeamCity 5.0 to create a C # solution using the sln2008 build runner. We have several projects that produce exe files. We want to use the TeamCity artifact function to smooth out all directories. We want all the files to be in the same folder without subfolders, no matter what folder it appears in. TeamCity maintains a directory hierarchy when creating artifacts.

Our artifacts are created using

**\bin\Release\*.*=>PublishedFiles

We get

  • PublishedFiles \ FooProject \ Bin \ Release \ foo.exe
  • PublishedFiles \ BarProject \ Bin \ Release \ Bar.exe

We want

  • PublishedFiles \ foo.exe
  • PublishedFiles \ Bar.exe

EDIT

TeamCity 5.1 will bring us closer.

Sample

SomeLibrary\bin\Release\*.dll => PublishedFiles

will get us

  • PublishedFiles \ SomeLibrary.dll
  • PublishedFiles \ SomeDependency.dll

but

**\bin\Release\*.dll => PublishedFiles

, .

MSBuild , TeamCity . MSBuild.

+3
2

TeamCity 5.x:

, , (, "" , ). TeamCity , .

+4

DLL .

0

Source: https://habr.com/ru/post/1735733/


All Articles