让 NDepend 通过输入目录递归查找多个项目中的所有程序集/源
我正在使用 NAnt 构建脚本通过所需的命令行参数调用 NDepend。
<exec program="NDepend.Console.exe" basedir="${NDependPath}">
<arg line="${NDependProjectFilePath} /indirs ${NDependInDirs} /outdir ${NDependOutputDir}" />
</exec>
但我正在寻找的是让 NDepend 递归遍历 NDepend 项目文件中列出的程序集的指定“输入目录”的所有子目录。
我使用 NAnt 将所有程序集递归复制到指定文件夹,然后将 NDepend 指向此文件夹作为其输入。但这种方法会导致许多与代码本身相关的指标缺失。
任何想法如何不列出我所有程序集的显式路径(这是一个大项目);我可以通过指定顶级目录来获取整个解决方案的指标吗?
I am using a NAnt build script to call NDepend with the required command line arguments.
<exec program="NDepend.Console.exe" basedir="${NDependPath}">
<arg line="${NDependProjectFilePath} /indirs ${NDependInDirs} /outdir ${NDependOutputDir}" />
</exec>
But what I am looking for is to get NDepend to recurse through all subdirectories of the specified 'input directory' for the assemblies listed in my NDepend project file.
I used NAnt to copy all assemblies recursively to a specified folder and then pointed NDepend to this as its input. But this method results in many missing metrics relating to the code itself.
Any ideas how without listing the explicit path of all of my assemblies (it is a large project); I can get metrics across the whole solution by specifying the top level directory?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
现在可以通过输入目录递归查找跨多个项目的所有程序集的功能:NDepend Start Page >>>分析文件夹中的 .NET 程序集 >>直接/递归子文件夹
感谢NDepend.API,您还可以以编程方式搜索对于磁盘上的程序集,用这些程序集填充 NDepend 项目,然后运行分析以创建报告。请参阅:
NDepend.API 入门
NDepend.DotNet.IDotNetManager 成员
Recursive through an input directory to find all assemblies accross multiple project is now a feature available from: NDepend Start Page >>> Analyze .NET assemblies in folders >>> direct/recursive child folders
Thanks to NDepend.API you can also programatically search for assemblies on your disk, fill a NDepend project with these assemblies, and run an analysis to create a report. See:
Getting started with NDepend.API
NDepend.DotNet.IDotNetManager members