如何为Resharper命令行工具安装扩展 [英] How to install extension for Resharper command-line tools

查看:78
本文介绍了如何为Resharper命令行工具安装扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们当前在CI构建服务器上使用Resharper命令行工具2016.3在构建时检查代码是否存在问题。它运行良好,但仍然存在问题,我找不到任何合适的文档:如何使用命令行安装和配置扩展程序。例如,我想将环复杂度扩展添加到我的分析中。 文档表示将-x开关与扩展名(PowerToys.CyclomaticComplexity)。运行代码检查,但结果文件中未包含复杂性警告,这可能是因为该扩展名未安装在我的构建服务器上。我没有在构建机器上安装VS(并且我不想这样做),所以如何手动安装扩展?

We're currently using the Resharper command-line tool 2016.3 on our CI build server to inspect code for issues at build time. It's working pretty well but I still have an issue and I can't find any proper documentation on that : how do I install and configure an extension using the command line. For example, I want to add the Cyclomatic complexity extension to my analysis. Documentation said to use the -x switch with the name of the extension (PowerToys.CyclomaticComplexity). The code inspection runs but the complexity warning aren't included in my result file, probably because the extension isn't installed on my build server which make sense. I don't have VS installed on my build machine (and I would prefer not to have to) so how can I install the extension "manually" ?

谢谢

推荐答案

2016.3中的命令行工具当前不完全支持加载扩展。问题跟踪器中的此评论可能包含一些步骤能够支持-基本上将扩展名.nupkg放在产品文件夹中。 YMMV。

The command line tools in 2016.3 don't currently fully support loading extensions. This comment in the issue tracker has some steps that might be able to support - basically put the .nupkg of the extension in the product folder. YMMV.

这篇关于如何为Resharper命令行工具安装扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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