Using StyleCop into the namespace

Feb 6, 2012 at 1: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.

Why:

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

Resolve:

Use the following using within the namespace:

using global::StyleCop;

 

Hope this helps.

Coordinator
Feb 24, 2012 at 1:55 PM

Awesome thanks. I'll get it fixed up!

 

Mike

Coordinator
Feb 24, 2012 at 2:14 PM

Done... http://tfsbuildextensions.codeplex.com/SourceControl/changeset/changes/74494

Feb 24, 2012 at 6:00 PM

Nice :) one less todo.