This project is read-only.

Using StyleCop into the namespace

Feb 6, 2012 at 2:05 PM

I was going through the source code of the TFS build extensions and came across the following TODO in TfsBuildExtensions.Activities.CodeQuality.StyleCop

//TODO: figure out why comilation breaks if we move StyleCop declaration into the namespace

I could not help myself and needed to find out why and resolve it.


The class is called StyleCop and when adding a using StyleCop the names collide.


Use the following using within the namespace:

using global::StyleCop;


Hope this helps.

Feb 24, 2012 at 2:55 PM

Awesome thanks. I'll get it fixed up!



Feb 24, 2012 at 3:14 PM


Feb 24, 2012 at 7:00 PM

Nice :) one less todo.