对于针对C#/。NET的API向后兼容性工具?兼容性、工具、NET、API

2023-09-02 11:55:51 作者:辣逼,小心!

我发现这个工具,http://sab39.netreach.com/Software/Japitools/JDK-Results/46/,该检查原料药使用的Javadoc Java的不同版本之间的向后兼容性。

有相当于这一个C#/。NET的工具?

下面是JDK 1.5和JDK使用此工具6 API之间的比较的例子: http://www.kaffe.org/~stuart/japi/htmlout/h-jdk15-jdk6

解决方案

ApiChange 确实需要一组老组件和一组新组件这是显示差异的潜在破坏API的变化:

  

ApiChange -diff -old HelloWorldV1.dll - 新HelloWorldV2.dll

LibCheck可以让你比较两个版本的组件,并确定了差异。该工具报告的差异为删除,并结合补充的API:

  

LibCheck -store HelloWorld.dll 1.0 -full C: HelloWorldV1   LibCheck -store HelloWorld.dll 2.0 -full C: HelloWorldV2   LibCheck -compare 1.0 2.0

参见 ,突出显示大会版本之间的公共API差异和的阿比的Diff组件之间文章

Java和NET有什么区别应该如何选择

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.

Is there an tool equivalent to this one for C#/.NET?

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 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

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 -compare 1.0 2.0

See also "Working with LibCheck", "Highlight Public API Differences Between Assembly Revisions" and "Api Diff Between Assemblies" articles.