让 Resharper 使用 StyleCop 配置
我们的项目已经有 StyleCop 配置。 我正在使用 ReSharper,我希望能够让 R# 使用 StyleCop 设置。
我知道您可以使用 StyleCopForResharper 在 Resharper 中构建设置并将其导出为 StyleCop 配置,但是您可以执行相反的操作并让 Resharper 使用现有的 StyleCop 配置吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定这篇文章是否仍然真实。 CodePlex 提供免费的 StyleCop for ReSharper。
它使用 StyleCop 程序集,因此它将使用项目文件设置。
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.
我不知道有什么方法可以做到这一点,但 R# 可以布局您的成员/属性/方法等以符合 StyleCop。 查看我的博客文章 http: //stevedunns.blogspot.com/2009/03/halt-this-is-stylecop-you-are-in.html。
HTH。
史蒂夫
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