Skip to content

Commit

Permalink
further fix for issue #64
Browse files Browse the repository at this point in the history
  • Loading branch information
furmangg committed May 1, 2019
1 parent 283e60c commit 5f1c5ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions SSIS/DeployPackagesPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ public override void Exec()
}

sharedDataWarehouseInterfaces::Microsoft.DataWarehouse.Interfaces.IConfigurationSettings settings = (sharedDataWarehouseInterfaces::Microsoft.DataWarehouse.Interfaces.IConfigurationSettings)((System.IServiceProvider)projects[0]).GetService(typeof(sharedDataWarehouseInterfaces::Microsoft.DataWarehouse.Interfaces.IConfigurationSettings));
if (settings == null)
{
MessageBox.Show("Could not get IConfigurationSettings");
return;
}
DataWarehouseProjectManager projectManager = (DataWarehouseProjectManager)settings.GetType().InvokeMember("ProjectManager", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.GetProperty | System.Reflection.BindingFlags.FlattenHierarchy, null, settings, null);

this.ApplicationObject.ToolWindows.OutputWindow.Parent.SetFocus();
Expand Down Expand Up @@ -201,6 +206,11 @@ public override void Exec()
private void DeployProject(Project proj, IOutputWindow outputWindow, System.Array selectedItems, bool bCreateBat)
{
sharedDataWarehouseInterfaces::Microsoft.DataWarehouse.Interfaces.IConfigurationSettings settings = (sharedDataWarehouseInterfaces::Microsoft.DataWarehouse.Interfaces.IConfigurationSettings)((System.IServiceProvider)proj).GetService(typeof(sharedDataWarehouseInterfaces::Microsoft.DataWarehouse.Interfaces.IConfigurationSettings));
if (settings == null)
{
MessageBox.Show("Could not get IConfigurationSettings");
return;
}
DataWarehouseProjectManager projectManager = (DataWarehouseProjectManager)settings.GetType().InvokeMember("ProjectManager", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.GetProperty | System.Reflection.BindingFlags.FlattenHierarchy, null, settings, null);

StringBuilder sBatFileContents = new StringBuilder();
Expand Down

0 comments on commit 5f1c5ea

Please sign in to comment.