用于验证公共 API 兼容性的工具 [英] Tool to verify compatibility of a public APIs

查看:26
本文介绍了用于验证公共 API 兼容性的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发的平台产品要求版本之间具有公共兼容性,因此针对我们之前的构建编译的一些代码应该能够针对我们的新构建运行,而无需重新编译.

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.

是否有工具可以自动执行此验证,我只能找到如何自动测试二进制兼容性?这似乎适用于 C++

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

推荐答案

您可以尝试使用 ApiChange 的 "nofollow noreferrer">diff 功能.

You could try to use the diff functionality of ApiChange.

此实用程序采用一组 旧程序集 和一组 新程序集,它们因 Api 更改而有所不同.检查包括:

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

  • 添加/删除类型
  • 添加/删除字段、方法、事件(和属性)

这篇关于用于验证公共 API 兼容性的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆