StyleCop For Resharper - 它去哪儿了

发布于 2024-12-20 10:50:55 字数 416 浏览 4 评论 0原文

我是 resharper 的忠实粉丝,不久前曾经使用过 resharper 插件的 stylecop。 我今天想再次使用它,但是 stylecop for resharper codeplex 网站说 stylecop for resharper 现在已集成到 stylecop 中。

所以我安装了 stylecop (4.6),但我的 resharper (5.1) 似乎没有变化。 我特别喜欢使用 resharper 包的 stylecop 中包含的代码格式设置(我认为该文件是“StyleCopCodeStyle.xml”,可以在 resharper 选项中使用它来设置代码格式和清理行为) - 这个 xml 文件现在已经消失了。

我是不是错过了什么。关于这种 stylecop/resharper 婚姻的疑问为零,我对自己实际得到的一无所知,

有人能解释一下吗?

Im a great fan of resharper, and used to use the stylecop for resharper plugin a while back.
I wanted to use it again today but the stylecop for resharper codeplex site says that stylecop for resharper is now integrated into stylecop.

So I installed stylecop (4.6), but my resharper (5.1) appears to be unchanged.
I particularly liked using the code formatting settings that were included in the stylecop for resharper package (I think the file was 'StyleCopCodeStyle.xml', which could be used in the resharper options to set the code formatting and cleanup behaviour) - this xml file is now gone.

Am I missing something. Theres zero doumentation about this stylecop/resharper marriage, and I clueless as to what I am actually getting

Can anyone shed some light on this ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦年海沫深 2024-12-27 10:50:55

只是 ReSharper 9 的更新:

安装 ReSharper & StyleCop 一起执行以下步骤:

  1. 关闭所有 Visual Studio 应用程序(重要!!)。
  2. 双击可执行文件并按照安装过程安装 ReSharper。此步骤将需要管理权限(最有可能)。需要遵循的确切步骤尚不清楚,因为试用版与完整版中的步骤可能有所不同。
  3. 从此处下载 stylecop msi 文件: https://stylecop.codeplex.com/releases/view/ 79972
  4. 通过双击并按照标准安装过程进行安装。
    注意:可能需要将安装文件移动到与 C: 不同的目录中,否则如果用户没有管理权限,他们将无法抑制规则。
  5. 打开 Visual Studio,顶部菜单栏中应该有一个名为 ReSharper 的新菜单项。选择扩展管理器...
    在此处输入图像描述
  6. 应打开一个新窗口,其中列出了 resharper 的所有可能扩展。搜索(窗口右上角)“ReSharper.StyleCop”并按安装按钮。
  7. 请遵循此附加组件的基本安装说明。
  8. 重新启动视觉工作室。
  9. 全部完成!

Just an update for ReSharper 9:

To install ReSharper & StyleCop together follow these steps:

  1. Close all Visual Studio Applications (Important!!).
  2. Install ReSharper by double clicking the executable and following the installation process. This step will require administration rights (most likely). The precise steps to follow are unknown as they are likely to be different in the trial versus full version.
  3. Download the stylecop msi file from here: https://stylecop.codeplex.com/releases/view/79972
  4. Install it by double clicking and following a standard install process.
    NOTE: It might be required to move the install files into a different directory from C: because otherwise if the user does not have administration rights they will not be able to supress rules.
  5. Open Visual studio and there should be a new menu item in the top menu bar called ReSharper. Select Extension Manager…
    enter image description here
  6. A new window should open with a list of all of the possible extensions for resharper. Search (top right of the window) for “ReSharper.StyleCop” and press the install button.
  7. Follow the basic installation instructions for this add-on.
  8. Restart visual studio.
  9. All done!!
作妖 2024-12-27 10:50:55

StyleCop 项目主页上,非常明确地指出 StyleCop 4.5 是与 Resharper 5.1 兼容的版本。

On the StyleCop project home page, it is quite clearly states that StyleCop 4.5 is the version that is compatible with Resharper 5.1.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文