public override bool Execute() { try { Log.LogMessageFromText(String.Format("PnPXmlAppConfigGeneratorTask: 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); } }
public override bool Execute() { try { Log.LogMessageFromText(String.Format("PnPSqlAppConfigGeneratorTask: Reading information for configuration {0} to generate app.config in {1}", Configuration, AppConfigFolder), MessageImportance.Normal); PnPAppConfigManager appConfigManager = new PnPAppConfigManager(SQLConnectionString.Replace(""", "\""), Configuration); appConfigManager.GenerateAppConfig(AppConfigFolder); return(true); } catch (Exception ex) { Log.LogErrorFromException(ex); return(false); } }