C#/.NET API 向后兼容的工具? [英] Tool for backwards compatibility for the C#/.NET API?
问题描述
我找到了这个工具,http://sab39.netreach.com/Software/Japitools/JDK-Results/46/,它使用 javadoc 检查不同版本的 Java API 之间的向后兼容性.
I found this tool, http://sab39.netreach.com/Software/Japitools/JDK-Results/46/, which checks for backwards compatibility between different versions of APIs for Java using javadoc.
是否有与 C#/.NET 等效的工具?
Is there an tool equivalent to this one for C#/.NET?
以下是使用此工具比较 JDK 1.5 和 JDK 6 API 的示例:http://www.kaffe.org/~stuart/japi/htmlout/h-jdk15-jdk6
Here is an example of a comparison between JDK 1.5 and JDK 6 APIs using this tool: http://www.kaffe.org/~stuart/japi/htmlout/h-jdk15-jdk6
推荐答案
ApiChange 确实需要一组旧"程序集和一组新"程序集它们因可能破坏 Api 更改而有所不同:
ApiChange does take a set of "old" assemblies and a set of "new" assemblies which are diffed for potentially breaking Api changes:
ApiChange -diff -old HelloWorldV1.dll -new HelloWorldV2.dll
ApiChange -diff -old HelloWorldV1.dll -new HelloWorldV2.dll
LibCheck 允许您比较程序集的两个版本并确定差异.该工具将差异报告为已删除"和已添加"API 的组合:
LibCheck allows you to compare two versions of an assembly and determine the differences. The tool reports the differences as a combination of "removed" and "added" APIs:
LibCheck -store HelloWorld.dll 1.0 -full C:\HelloWorldV1\
LibCheck -store HelloWorld.dll 2.0 -full C:\HelloWorldV2\
LibCheck - 比较 1.0 2.0LibCheck -store HelloWorld.dll 1.0 -full C:\HelloWorldV1\
LibCheck -store HelloWorld.dll 2.0 -full C:\HelloWorldV2\
LibCheck -compare 1.0 2.0
另见使用LibCheck","突出显示程序集修订版之间的公共 API 差异" 和 程序集之间的 API 差异" 文章.
这篇关于C#/.NET API 向后兼容的工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!