是否可以在 VS2010 中对单个文件运行 stylecop?

发布于 2024-12-07 06:47:08 字数 229 浏览 1 评论 0原文

我尝试过寻找命令行选项等。我试图缩短等待查看构建是否由于 stylecop 失败的时间。

此选项不会出现在任何上下文菜单或工具菜单中: 是否可以在项目中仅对 1 个文件运行 StyleCop?

I've tried looking for command line options etc. I'm trying to lower the time I have to wait to see if a build fails due to stylecop.

This option does not appear in any context menus or the tools menu: Is it possible to run StyleCop on just 1 file in a project?

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

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

发布评论

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

评论(1

夜深人未静 2024-12-14 06:47:08

以下上下文菜单应包含用于运行 StyleCop 的命令:

  • 在解决方案资源管理器中的解决方案项(重新扫描整个解决方案)
  • 在解决方案资源管理器中的项目项(重新扫描项目)
  • 在解决方案资源管理器中的任何单个 .cs 文件(扫描单个文件)
  • 内部文本任何单个 .cs 文件的编辑器(扫描单个文件)

顺便问一下,您使用哪个 StyleCop 版本?
您是否考虑过错误安装的问题?

The following context menus should contain commands for running StyleCop:

  • At solution item in Solution Explorer (rescans the entire solution)
  • At project item in Solution Explorer (rescans a project)
  • At any single .cs file in Solution Explorer (scans single file)
  • Inside text editor of any single .cs file (scans single file)

By the way, which StyleCop version do you use?
Have you considered any issues about wrong installation?

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