How to get the project name of source document

Nov 23, 2012 at 11:34 AM

I am writing custom rules using StyleCop SDK. I need to get the name of visual studio project where the checked element resides. Is there any way to get this?
The "element.Document.SourceCode.Project.Location" way don't work.

Dec 3, 2012 at 6:38 PM

Hello HottDog, I don't have your answer but I would like to know if you can tell me where can I get started to write custom StyleCop rules. I can't find any tutorial/how-to/etc...

Thanks!

Dec 7, 2012 at 6:35 AM

You can use this links as start point

http://stylecopplus.codeplex.com/wikipage?title=How%20to%20Create%20StyleCop%20Custom%20Rule

http://scottwhite.blogspot.ch/2008/11/creating-custom-stylecop-rules-in-c.html

http://shishkin.wordpress.com/2008/05/30/stylecop-test-driven-rules-development/

Regards

Dec 7, 2012 at 10:00 AM

Thanks a lot!

Apr 25, 2013 at 12:33 AM
Hi HottDog,

Did you figure out how to?
I would be interested in the answer.

Thanks