//-----------------------------------------------------------------------
//
// Copyright (c) Outercurve Foundation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.BuildTasks {
using Microsoft.Build.Utilities;
public class SignatureVerification : SnToolTask {
///
/// Gets or sets a value indicating whether to register the given assembly and public key token
/// for skip verification or clear any pre-existing skip verification entry.
///
public bool SkipVerification { get; set; }
///
/// Gets or sets the name of the assembly.
///
/// The name of the assembly.
public string AssemblyName { get; set; }
///
/// Gets or sets the public key token.
///
/// The public key token.
public string PublicKeyToken { get; set; }
///
/// Generates the command line commands.
///
protected override string GenerateCommandLineCommands() {
CommandLineBuilder builder = new CommandLineBuilder();
builder.AppendSwitch("-q");
if (this.SkipVerification) {
builder.AppendSwitch("-Vr");
} else {
builder.AppendSwitch("-Vu");
}
builder.AppendFileNameIfNotNull(this.AssemblyName + "," + this.PublicKeyToken);
return builder.ToString();
}
}
}