コード例 #1
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);
     }
 }
コード例 #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;
     }
 }
コード例 #3
0
ファイル: PnPAppConfigReaderTask.cs プロジェクト: nats31/PnP
 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;
     }
 }
コード例 #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);
     }
 }