5

My first thought is that is would be bad practice to list each dll individually. I want to avoid having to edit my TC configuration every time someone creates a new project/dll.

Although with the traditional directory structure I can't find any sensible wildcard pattern.

Directory structure

  • Solution
    • Container
      • bin
        • Debug
    • Core
      • bin
        • Debug
    • Web
      • bin
        • Debug
    • ...

Any wildcard pattern (like **\bin\**.dll) will match the same DLLs multiple times.

How do you guys specify what assemblies to inspect with FxCop in TeamCity?

2 Answers2

3

I have a unit test project that references all the other projects in my solution. The DLL's generated by the other projects are copied locally when the unit test project is built, so I run all my analysis on that single bin folder.

Mightymuke
  • 5,094
  • 2
  • 31
  • 42
1

The most comfortable way for me is a FxCop project file checked in repository. So I have the same report on developer machine and on build server.

Aleš Roubíček
  • 5,198
  • 27
  • 29
  • I'm assuming you have to edit the FxCop project file each time you add a new project to your solution? –  Nov 05 '12 at 11:24