Esempio n. 1
0
 public void To(string outputPath)
 {
     try
     {
         Host?.Log($"Publishing to {outputPath}");
         Manager.PublishApp(outputPath);
         Host?.Log("Publish operation completed!");
     }
     catch (HandlerProcessingException ex)
     {
         Host?.Error(string.Join(Environment.NewLine, ex.HandlerResponses.Where(r => r.Result == HandlerResult.Error).Select(r => $"{r.Handler.Name} - {r.ResultMessage}")));
     }
 }