更快/更好的比较 .NET 参考的方法特性?
我正在升级一个旧组件,该组件共享对不同版本的自定义程序集的引用。
为了比较两个不同项目的引用的属性,我将两个不同引用中的属性值分别复制并粘贴到文本文件中,以便于概览和比较。 (如果需要,我可以将文本粘贴到差异应用程序中进行完整性检查。)但这是一个耗时且容易出错的过程。
有谁知道一种快速/简单的方法来以不易出错的过程获取给定参考的所有属性的文本表示?
谢谢。
I am in the process of upgrading an older component which shares references to custom assemblies of differing versions.
To compare the properties of references from two different projects I have been copying and pasting the property values individually from the two different references to a text file for easier overview and comparison. (If need be i could paste the text into a diff app for a sanity check.) But this is a time-consuming and error-prone process.
Does anyone know of a quick/easy way to get a text representation of all the properties of a given reference in a less error-prone process?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此信息包含在程序集的清单中。这是纯文本,包含引用名称、密钥和版本。
使用 MSIL 反汇编程序 查看清单集会。
This information is included in the manifest of an assembly. This is plain text, contains the name of the reference, the key, and the version.
Use MSIL Disassembler to look at the manifest of an assembly.
实际上,我刚刚意识到我可以在 prj 文件中找到所有项目引用。每个参考看起来都是这样的:
我所要做的就是在其他项目中找到类似的参考,并在文本编辑器或 diff 应用程序中比较两者。
Actually, i just realized that i can find all of the project references in the prj file. Each reference looks something like this:
All i have to do is find the similar reference in the other project and compare the two in a text editor or diff app.