Public API Compatibility Checker

I am working on a platform product that requires public compatibility between versions, so some code that was compiled against our previous build should work against our new build without having to recompile.

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

+4
source share
2 answers

You can try using the diff functionality of ApiChange .

This utility accepts a set of old assemblies and a set of new assemblies that differ for Api changes. Checks include:

  • Added / Deleted Types
  • Added / removed fields, methods, events (and properties)
+3
source

Microsoft has released a tool that they use to check for breaking changes in their releases; It is called LibCheck .

+2
source

Source: https://habr.com/ru/post/902450/


All Articles