/// <summary> /// Performs the signing. /// </summary> /// <param name = "identity">The identity.</param> protected override void PerformSigning(String identity) { String productDefinition = null; if (this.ProductDefinition != null && File.Exists(this.ProductDefinition.ToString())) { productDefinition = this.ProductDefinition.ToString(); } using (StringWriter outputWriter = new StringWriter()) { using (StringWriter errorWriter = new StringWriter()) { ProductBuild.ArchiveApplication(this.Bundle.ToString(), identity, productDefinition, outputWriter, errorWriter); String outputLog = outputWriter.ToString(); String errorLog = errorWriter.ToString(); this.Log(Level.Info, outputLog); this.Log(Level.Info, errorLog); } } }
/// <summary> /// Performs the signing. /// </summary> /// <param name = "identity">The identity.</param> protected override bool PerformSigning(String identity) { String productDefinition = null; if (this.ProductDefinition != null && File.Exists(this.ProductDefinition.GetMetadata("FullPath"))) { productDefinition = this.ProductDefinition.GetMetadata("FullPath"); } using (StringWriter outputWriter = new StringWriter()) { using (StringWriter errorWriter = new StringWriter()) { ProductBuild.ArchiveApplication(this.Bundle.GetMetadata("FullPath"), identity, productDefinition, outputWriter, errorWriter); String outputLog = outputWriter.ToString(); String errorLog = errorWriter.ToString(); this.Log.LogMessage(outputLog); this.Log.LogMessage(errorLog); } } return(true); }