public override bool Execute()
 {
     try
     {
         Log.LogMessageFromText(String.Format("PnPAppConfigGeneratorTask: Reading information from {0} for configuration {1} to generate app.config in {2}", ConfigurationFile, Configuration, AppConfigFolder), MessageImportance.Normal);
         PnPAppConfigManager appConfigManager = new PnPAppConfigManager(ConfigurationFile);
         appConfigManager.GenerateAppConfig(Configuration, AppConfigFolder);
         return(true);
     }
     catch (Exception ex)
     {
         Log.LogErrorFromException(ex);
         return(false);
     }
 }
Exemplo n.º 2
0
 public override bool Execute()
 {
     try
     {
         Log.LogMessageFromText(String.Format("PnPAppConfigGeneratorTask: Reading information from {0} for configuration {1} to generate app.config in {2}", ConfigurationFile, Configuration, AppConfigFolder), MessageImportance.Normal);
         PnPAppConfigManager appConfigManager = new PnPAppConfigManager(ConfigurationFile);
         appConfigManager.GenerateAppConfig(Configuration, AppConfigFolder);
         return true;
     }
     catch(Exception ex)
     {
         Log.LogErrorFromException(ex);
         return false;
     }
 }
Exemplo n.º 3
0
 public override bool Execute()
 {
     try
     {
         Log.LogMessageFromText(String.Format("PnPAppConfigReaderTask: Reading information from {0} for configuration {1}", ConfigurationFile, Configuration), MessageImportance.Normal);
         PnPAppConfigManager appConfigManager = new PnPAppConfigManager(ConfigurationFile);
         PnPBuildConfiguration = appConfigManager.GetConfigurationElement(Configuration, "PnPBuild");
         PnPBranch = appConfigManager.GetConfigurationElement(Configuration, "PnPBranch");
         return true;
     }
     catch(Exception ex)
     {
         Log.LogErrorFromException(ex);
         return false;
     }
 }
Exemplo n.º 4
0
 public override bool Execute()
 {
     try
     {
         Log.LogMessageFromText(String.Format("PnPAppConfigReaderTask: Reading information from {0} for configuration {1}", ConfigurationFile, Configuration), MessageImportance.Normal);
         PnPAppConfigManager appConfigManager = new PnPAppConfigManager(ConfigurationFile);
         PnPBuildConfiguration = appConfigManager.GetConfigurationElement(Configuration, "PnPBuild");
         PnPBranch             = appConfigManager.GetConfigurationElement(Configuration, "PnPBranch");
         return(true);
     }
     catch (Exception ex)
     {
         Log.LogErrorFromException(ex);
         return(false);
     }
 }