public static void StrongNameCreate(this ICakeContext context, FilePath strongNameKeyFilePath) { if (strongNameKeyFilePath == null) { throw new ArgumentNullException("strongNameKeyFilePath"); } var runner = new StrongNameToolRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Registry); runner.Run(strongNameKeyFilePath); }
public static void StrongNameVerify(this ICakeContext context, IEnumerable <FilePath> assemblies, StrongNameToolSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } if (assemblies == null) { throw new ArgumentNullException("assemblies"); } if (settings == null) { throw new ArgumentNullException("settings"); } var runner = new StrongNameToolRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Registry); foreach (var assembly in assemblies) { runner.Run("verify", assembly, settings); } }