Add diagnostic support for frameworkcompatibility file.