检查 Visual Studio 项目中源文件之间的构建依赖关系
我有一个遗留项目,需要重建大部分代码库,只是为了触及错误的源文件,我希望重构一些代码,以阻止这种构建级联导致较长的构建时间。
为了将我的开发工作集中在高影响点上,我希望查看源文件之间的构建依赖关系,以识别高扇入点和高扇出点。
考虑到这一点,Visual Studio 是否提供了任何功能,允许开发人员查看源文件之间所有构建依赖关系的图表?即,确定如果我触摸文件 X,则必须重建哪些翻译单元。
I have a legacy project that is requiring rebuilds of large portions of the code base just for touching the wrong source file, and I was hoping to refactor some bits of the code to stop this build cascade from leading to large build times.
In order to focus my development effort on high-impact points, I was hoping to take a look at the build dependencies between source files to identify high fan-in and high fan-out points.
With this in mind, does Visual Studio offer any functionality that allows developers to see a graph of all build dependencies between source files? I.e., determine which translation units will have to be rebuilt if I touch file X.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有多种方法可以查看项目依赖项,但一种快速而简单的方法是使用 Visual Studio 的本机功能:
< img src="https://i.sstatic.net/NwZi9.png" alt="选择项目依赖项...">
另一种更全面的方法是 通过 Visual Studio 创建代码图(需要企业版)。
There are multiple ways to view project dependencies but one quick and simple way is to use a native feature of Visual Studio:
Another, more comprehensive, way would be to create a Code Map via Visual Studio (requires Enterprise edition).