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