public static void RunValidators(CompatibilityLoggerBase log, string packageTargetPath, bool generateCompatibilitySuppressionFile, bool runApiCompat, bool enableStrictModeForCompatibleTfms, bool enableStrictModeForCompatibleFrameworksInPackage, bool disablePackageBaselineValidation, string?baselinePackageTargetPath, string?runtimeGraph, Dictionary <string, HashSet <string> >?frameworkReferences) { Package package = Package.Create(packageTargetPath, runtimeGraph); new CompatibleTfmValidator(log).Validate(new(package, enableStrictModeForCompatibleTfms, runApiCompat, frameworkReferences)); new CompatibleFrameworkInPackageValidator(log).Validate(new( package, enableStrictModeForCompatibleFrameworksInPackage, runApiCompat, frameworkReferences)); if (!disablePackageBaselineValidation && !string.IsNullOrEmpty(baselinePackageTargetPath)) { new BaselinePackageValidator(log).Validate(new( package, enableStrictMode: false, runApiCompat, frameworkReferences, baselinePackage: Package.Create(baselinePackageTargetPath, runtimeGraph))); } if (generateCompatibilitySuppressionFile) { log.WriteSuppressionFile(); } }
public CompatibleTfmValidator(CompatibilityLoggerBase log) { _log = log; }
public BaselinePackageValidator(CompatibilityLoggerBase log) { _log = log; }
public CompatibleFrameworkInPackageValidator(CompatibilityLoggerBase log) { _log = log; }