简体   繁体   English

如何让NDepend作为构建过程的一部分运行?

[英]How can I get NDepend to run as part of my build process?

I love NDepend and would love it even more if I could figure out how to get it to run a report overnight as part of our build process. 我喜欢NDepend,如果我能弄清楚如何在一夜之间运行报告作为构建过程的一部分,我会更喜欢它。

We're using NDepend v5 and TFS 2012 and I can't for the life of me find any resources on how to do this. 我们正在使用NDepend v5和TFS 2012,我不能在我的生活中找到任何有关如何执行此操作的资源。 The closest I've found all reference 2010 and are very short of detail. 最接近我发现所有参考2010年,并且非常缺乏细节。

These are the resources I've been going by: 这些是我一直以来的资源:

My ideal here would be a build process that runs NDepend over the latest version of the solution every night at midnight and emails the HTML report around the office. 我的理想是在每晚午夜运行NDepend而不是最新版本的解决方案,并在办公室发送HTML报告。 I've spent a couple of hours trying to figure out how to get this working within the build process template and have pretty much given up. 我花了几个小时试图弄清楚如何在构建过程模板中使用它并且几乎放弃了。 At this point I feel like it might just be easier to manually run it every morning. 在这一点上,我觉得每天早上手动运行它可能更容易。

Has anyone got this working with TFS 2012? 有没有人与TFS 2012合作?

EDIT: It's all a bit too complicated I think, and we've got work to be getting on with, so I used Patrick's link and just run NDepend from the command line via a task scheduler. 编辑:我认为这有点太复杂了,我们已经有了工作,所以我使用了Patrick的链接,只需通过任务调度程序从命令行运行NDepend。 It would be nice to have some proper build integration but I don't have time to muck around for a few days on this. 有一些适当的构建集成会很好,但我没有时间在这上面几天。

(as per your first link...) If you can run NDepend from the command line you can run it from an msbuild.proj file using the task. (根据您的第一个链接...)如果您可以从命令行运行NDepend,则可以使用该任务从msbuild.proj文件运行它。 Create the .proj, add it to your source control and then add the .proj to run after your solution has built in the build def. 创建.proj,将其添加到源代码控制中,然后添加.proj,以便在构建def后构建解决方案后运行.proj。

That's how I do similar stuff, however I think this is the clunky way of doing it, and that you can also do something similar by modifying the build xaml you use (eg DefaultTemplate.xaml) to run the exec task. 这就是我做类似的事情,但我认为这是做这件事的笨重方式,你也可以通过修改你使用的构建xaml(例如DefaultTemplate.xaml)来运行exec任务。

Also, have a look at build extensions 另外,看看构建扩展

...and to follow up a bit on timB33 answer, here is the NDepend.Console.exe command line argument doc , that you'll invoke from your build process. ...并且关于timB33的回答,这里是NDepend.Console.exe命令行参数doc ,您将从构建过程中调用它。

Also, you can achieve much more subtil scenarios by coding a TFS build extension invoking NDepend.API. 此外,通过编写调用NDepend.API的TFS构建扩展,您可以实现更多的子场景。 See our getting started with NDepend.API page . 请参阅我们的NDepend.API页面入门

We hope to make TFS and other CI systems integration available out-of-the-box in future versions, you can vote on our User Voice page . 我们希望在未来的版本中提供开箱即用的TFS和其他CI系统集成,您可以在我们的用户语音页面上投票。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Gradle:如何在正常构建过程中运行LIquibase变更集? - Gradle: How do I run my LIquibase changesets as part of my normal build process? 作为构建过程的一部分,如何自动将外部 jars 部署到我的存储库? - How can I automatically deploy external jars to my repository as part of my build process? 如何将文本文件作为构建的一部分? - How do I get a text file to be a part of my build? 如何将JaCoCoverage添加到我的Ant构建过程中? - How can I add JaCoCoverage to my Ant build process? 如何将最新版本的 Microsoft Build Tools 2013 安装到我的构建服务器上? - How can I get the latest version of Microsoft Build Tools 2013 onto my build server? javascript混淆作为构建过程的一部分 - javascript obfuscation as part of build process 如何运行Android自定义构建类型? - How do I run my Android custom build type? 如何使用 `npm run build: production` 而不是使用`npm run build --production` 构建我的 angular 应用程序? - How do i build my angular application with `npm run build : production` instead of using `npm run build --production`? 如何在 Azure DevOps YAML 构建定义的一个构建过程中拥有两个脚本命令? - How can I have two script commands in one build process for Azure DevOps YAML build definitions? 我怎样才能获得jenkins内部版本号,svn版本号......并将其显示在我的JSF页面上? - How can I get jenkins build number, svn revision number… and display it on my JSF page?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM