Tool to verify compatibility of a public APIs [closed]

余生颓废 提交于 2019-12-12 08:15:08

问题


I work on a platform product which requires public compatibility between versions, so some code that was compiled against our previous build should be able to work against our new build without the need to recompile.

Is there a tool that would automated this verification, all I could find was How to test binary compatibility automatically? which seems to be for C++


回答1:


You could try to use the diff functionality of ApiChange.

This utility takes a set of old assemblies and a set of new assemblies which are diffed for Api changes. The checks include :

  • Added/removed types
  • Added/removed fields, methods, events (and properties)



回答2:


Microsoft has released the tool that they use to check breaking changes in their releases; it's called LibCheck.



来源:https://stackoverflow.com/questions/3090792/tool-to-verify-compatibility-of-a-public-apis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!