简体   繁体   English

TFS如何从Code Review中排除DLL和代码注释/空白

[英]TFS how to exclude DLLs and code comments/white spaces from Code Review

In my team we are using TFS for code review. 在我们的团队中,我们使用TFS进行代码审查。 Unfortunately the UI in VS Team Explorer and the Team Foundation Web interface are pretty ugly and unfriendly, eg dlls packages need to be collapsed one by one and that makes Code Reviews tedious as you end up having to chase the relevant code. 不幸的是,VS Team Explorer中的UI和Team Foundation Web界面非常丑陋且不友好,例如,dll包必须一一收起,这会使代码审查变得乏味,因为您最终不得不追逐相关代码。

Is there any way I can exclude files (eg DLLs) or have more advanced filter (eg exclude comments, white spaces, new lines)? 有什么方法可以排除文件(例如DLL)或具有更高级的过滤器(例如,排除注释,空格,换行符)?

Thanks 谢谢

There is no way to simply exclude source controlled DLLS from Code Review. 无法从Code Review中简单地排除源代码控制的DLLS。

Daniel is right, for this kind of external dlls, the best and clean way is via the package management solution such as NuGet. Daniel是对的,对于这种外部dll,最好且干净的方法是通过软件包管理解决方案,例如NuGet。 There is an excellent extension called-- Package Management in TFS. 有一个出色的扩展名为TFS中的程序包管理。 It's not hard and will not take too much time to do this. 这并不难,并且不会花费太多时间。

Package Management is an extension that makes it easy to discover, install, and publish packages. 软件包管理是一个扩展,可以轻松发现,安装和发布软件包。 It's deeply integrated with other Team Services and TFS hubs like Build so that package management can become a seamless part of your existing workflows. 它与Build之类的其他Team Services和TFS中心深度集成,因此包管理可以成为您现有工作流程的无缝组成部分。

For more details, you could have a look at this tutorial-- Package Management in Team Services and TFS 有关更多详细信息,请查看本教程-Team Services和TFS中的程序包管理

Besides, there is also not any built-in advanced filter (eg exclude comments, white spaces, new lines). 此外,也没有任何内置的高级过滤器(例如,排除注释,空格,换行符)。 The official tutorial for your reference: Get your code reviewed with Visual Studio 供您参考的官方教程: 使用Visual Studio审查您的代码

You could also try to use some 3-rd party extension in VS such as this one: Review Assistant - Code Review Tool which also support TFS integraton. 您也可以尝试在VS中使用某些第三方扩展,例如以下代码Review Assistant-代码审查工具 ,它也支持TFS集成。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM