StyleCop 与 Visual Studio 2015 RC 的集成 [英] StyleCop integration with Visual Studio 2015 RC

查看:38
本文介绍了StyleCop 与 Visual Studio 2015 RC 的集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以我拥有 StyleCop 菜单选项的方式将我的 VS 2015 RC 实例与 StyleCop 集成 [Run StyleCopRun StyleCop (Rescan All)StyleCop Settings] 在解决方案资源管理器中右键单击项目时可用.从官方 StyleCop 站点安装 StyleCop-4.7.49.0.msi 为 VS 2013 添加了适当的选项,但不适用于 2015.是否有可能实现?

I want to integrate my instance of VS 2015 RC with StyleCop in the way that I have StyleCop menu options [Run StyleCop, Run StyleCop (Rescan All), StyleCop Settings] available when right clicking on project in Solution Explorer. Installing StyleCop-4.7.49.0.msi from official StyleCop site adds proper options for VS 2013 but not for 2015. Is it possible to achieve that?

推荐答案

如果它可以帮助您,我已经从 CodePlex 创建了 StyleCop 的一个分支.我的版本现在适用于 VS2015 并支持大多数新的 C# 6 规范.与 4.7.49.0 版本一样,您可以右键单击您的项目,您可以找到运行 StyleCop、运行 StyleCop(重新扫描全部)或编辑设置"菜单.

If it can help you, I have created a fork of StyleCop from CodePlex. My version works now with VS2015 and support most of new C# 6 specifications. Like version 4.7.49.0, you can right click on your project and you can find "Run StyleCop, Run StyleCop (Rescan All) or Edit settings" menus.

如何安装:

  1. 启动 VS2015
  2. 转到工具"并选择扩展和更新..."菜单
  3. 在左侧列表中选择Online",然后选择Visual Studio Gallery"
  4. 在搜索框中输入:StyleCop"
  5. 选择并下载Visual StyleCop"
  6. 然后右键单击您的项目并运行 StyleCop

如果你有任何问题可以在GitHub上报告,项目名称:Visual StyleCop.

If you have any issue you can report it on GitHub, project name : Visual StyleCop.

这篇关于StyleCop 与 Visual Studio 2015 RC 的集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆