Cake.BitDiffer

Cake.BitDiffer

Dieses Addin ist für das Buildsystem Cake, um das Kommandozeilen-Tool BitDiffer zu steuern. BitDiffer kann zwei Versionen einer Assembly auf Unterschiede untersuchen (Unerschiede in der Implementierung, öffentliche Schnittstellen usw.).

Verwendung

var settings = new BitDifferSettings {
    PreviousAssemblyFile = "./Version1/MyAsembly.dll",
    CurrentAssemblyFile = "./Version2/MyAssembly.dll",
    ReportOnlyChanged = true,
    CompareOnlyPublic = true,
    CompareImplementation = false,
    CompareAssemblyAttributeChanges = true,
    ResultOutputFile = "./CompareResults.xml", // Or HTML
    IsolationLevel = IsolationLevel.High,
    PreferGacVersion = true,
    ReflectionOnlyLoading = false
};
var compareResult = BitDiffer(settings);
Information(compareResult.HasChanges());
Information(compareResult.GetChangeMessage());
Information(compareResult.RawResult);

// Or with inline configuration
var result = BitDiffer(options => {
    options.PreviousAssemblyFile = "./Version1/MyAsembly.dll";
    options.CurrentAssemblyFile = "./Version2/MyAssembly.dll"
});