问题
Our project already has a StyleCop configuration. I am using ReSharper and I would like to be able to have R# use the StyleCop settings.
I know that you can use StyleCopForResharper to build the settings in Resharper and export them as a StyleCop configuration, but can you do the reverse and have Resharper consume the existing StyleCop config?
回答1:
I am not sure is this post still actual. There is free StyleCop for ReSharper at CodePlex.
It uses StyleCop assembly so it will use project file settings.
回答2:
I don't know of any way to do this, but it is possible for R# to layout your members/properties/methods etc. to comply with StyleCop. Check out my blog post at http://stevedunns.blogspot.com/2009/03/halt-this-is-stylecop-you-are-in.html.
HTH.
Steve
来源:https://stackoverflow.com/questions/1041373/get-resharper-to-consume-stylecop-configuration