Skip to content

Commit 686e311

Browse files
author
furmangg
committed
fix for issue #63
Microsoft.DataWarehouse.Interfaces.DLL appears in the BIShared extension folder as version 15.0.0 but it also appears in the SSAS and SSRS extension folders as Microsoft.DataWarehouse.Interfaces.DLL with version 15.2.0.
1 parent 5f1c5ea commit 686e311

4 files changed

Lines changed: 27 additions & 9 deletions

File tree

Binary file not shown.
-1.7 KB
Binary file not shown.

SQL2019_VS2017_BidsHelper.csproj

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,17 @@
745745
<Aliases>asAlias</Aliases>
746746
<Private>False</Private>
747747
</Reference>
748+
<Reference Include="Microsoft.DataWarehouse.Interfaces, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
749+
<HintPath>DLLs\SQL2019\Reference\Microsoft.DataWarehouse.Interfaces.DLL</HintPath>
750+
<Aliases>sharedDataWarehouseInterfaces</Aliases>
751+
<Private>False</Private>
752+
</Reference>
753+
<Reference Include="Microsoft.DataWarehouse.Interfaces.AS, Version=15.2.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
754+
<HintPath>DLLs\SQL2019\Reference\FromASFolder\Microsoft.DataWarehouse.Interfaces.AS.DLL</HintPath>
755+
<SpecificVersion>False</SpecificVersion>
756+
<Aliases>asDataWarehouseInterfaces</Aliases>
757+
<Private>False</Private>
758+
</Reference>
748759
<Reference Include="Microsoft.DataWarehouse.RS, Version=15.1.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
749760
<SpecificVersion>True</SpecificVersion>
750761
<HintPath>DLLs\SQL2019\Reference\Microsoft.DataWarehouse.RS.dll</HintPath>
@@ -833,7 +844,7 @@
833844
<Reference Include="Microsoft.SqlServer.DlgGrid, Version=15.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
834845
<SpecificVersion>True</SpecificVersion>
835846
<HintPath>DLLs\SQL2019\Reference\Microsoft.SqlServer.DlgGrid.dll</HintPath>
836-
<Private>False</Private>
847+
<Private>True</Private>
837848
</Reference>
838849
<Reference Include="Microsoft.SqlServer.Dts.Design, Version=15.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
839850
<SpecificVersion>True</SpecificVersion>
@@ -897,12 +908,6 @@
897908
<HintPath>DLLs\SQL2019\Reference\Microsoft.DataWarehouse.DLL</HintPath>
898909
<Private>False</Private>
899910
</Reference>
900-
<Reference Include="Microsoft.DataWarehouse.Interfaces, Version=15.1.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
901-
<SpecificVersion>False</SpecificVersion>
902-
<HintPath>DLLs\SQL2019\Reference\Microsoft.DataWarehouse.Interfaces.DLL</HintPath>
903-
<Private>False</Private>
904-
<Aliases>sharedDataWarehouseInterfaces</Aliases>
905-
</Reference>
906911
<Reference Include="Microsoft.DataWarehouse.VsIntegration">
907912
<HintPath>DLLs\SQL2019\Reference\Microsoft.DataWarehouse.VsIntegration.DLL</HintPath>
908913
<Private>False</Private>

SSIS/VariablesWindowPlugin.cs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,19 @@ private void HookupVariablesWindow(Window GotFocus)
108108
continue;
109109
}
110110

111-
IDesignerToolWindowService service = (IDesignerToolWindowService)designer.GetService(typeof(IDesignerToolWindowService));
111+
112+
package.Log.Debug(designer.GetType().FullName + " from " + designer.GetType().Assembly.Location);
113+
package.Log.Debug(typeof(IDesignerToolWindowService).FullName + " from " + typeof(IDesignerToolWindowService).Assembly.Location);
114+
var obj = designer.GetService(typeof(IDesignerToolWindowService));
115+
if (obj != null)
116+
package.Log.Debug(obj.GetType().FullName + " from " + obj.GetType().Assembly.Location);
117+
else
118+
package.Log.Debug("obj is null");
119+
120+
121+
122+
123+
IDesignerToolWindowService service = designer.GetService(typeof(IDesignerToolWindowService)) as IDesignerToolWindowService;
112124
if (service == null) continue;
113125
IDesignerToolWindow toolWindow = service.GetToolWindow(new Guid(SSIS_VARIABLES_TOOL_WINDOW_KIND), 0);
114126
if (toolWindow == null) continue;
@@ -190,7 +202,8 @@ private void HookupVariablesWindow(Window GotFocus)
190202
}
191203
catch (Exception ex)
192204
{
193-
MessageBox.Show(ex.Message + "\r\n\r\n" + ex.StackTrace, DefaultMessageBoxCaption, MessageBoxButtons.OK, MessageBoxIcon.Error);
205+
package.Log.Exception("Problem in HookupVariablesWindow", ex);
206+
//MessageBox.Show(ex.Message + "\r\n\r\n" + ex.StackTrace, DefaultMessageBoxCaption, MessageBoxButtons.OK, MessageBoxIcon.Error);
194207
}
195208
}
196209

0 commit comments

Comments
 (0)