Skip to content

Commit

Permalink
Compatibility Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
christianwade committed Mar 1, 2023
1 parent 900262b commit 0d79898
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 15 deletions.
4 changes: 2 additions & 2 deletions BismNormalizer/AlmToolkit/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.0.39.0")]
[assembly: AssemblyFileVersion("5.0.39.0")]
[assembly: AssemblyVersion("5.0.41.0")]
[assembly: AssemblyFileVersion("5.0.41.0")]
10 changes: 5 additions & 5 deletions BismNormalizer/AlmToolkitSetup/AlmToolkitSetup.vdproj
Original file line number Diff line number Diff line change
Expand Up @@ -2824,7 +2824,7 @@
{
"Name" = "8:.NET Framework"
"Message" = "8:[VSDNETMSG]"
"FrameworkVersion" = "8:v4.6.1 "
"FrameworkVersion" = "8:v4.6.1 "
"AllowLaterVersions" = "11:FALSE"
"InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=671728"
}
Expand All @@ -2836,7 +2836,7 @@
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:BismNormalizer, Version=5.0.38.0, Culture=neutral, PublicKeyToken=aa6675aad991a644, processorArchitecture=MSIL"
"AssemblyAsmDisplayName" = "8:BismNormalizer, Version=5.0.40.0, Culture=neutral, PublicKeyToken=aa6675aad991a644, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_0020EC0A2900F50F0F5DCC3E7BBE4237"
Expand Down Expand Up @@ -9301,15 +9301,15 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Power BI ALM Toolkit"
"ProductCode" = "8:{441E8417-AEE8-4D81-B210-7767FB9146F3}"
"PackageCode" = "8:{A5FE4A9F-F178-402C-811A-42B5FC8D8F0B}"
"ProductCode" = "8:{01BF64E8-33EA-4252-92A0-FDB6735680CE}"
"PackageCode" = "8:{632522B4-8F2E-45D4-99A4-7CAFFE18AF6F}"
"UpgradeCode" = "8:{96819CFD-6462-4AD1-ADB4-7903F30ADB92}"
"AspNetVersion" = "8:4.0.30319.0"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:TRUE"
"ProductVersion" = "8:5.0.39"
"ProductVersion" = "8:5.0.41"
"Manufacturer" = "8:Power BI ALM Toolkit"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.0.39.0")]
[assembly: AssemblyFileVersion("5.0.39.0")]
[assembly: AssemblyVersion("5.0.41.0")]
[assembly: AssemblyFileVersion("5.0.41.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.0.39.0")]
[assembly: AssemblyFileVersion("5.0.39.0")]
[assembly: AssemblyVersion("5.0.41.0")]
[assembly: AssemblyFileVersion("5.0.41.0")]
Binary file modified BismNormalizer/BismNormalizer/BismNormalizer.IconSetup.exe
Binary file not shown.
Binary file modified BismNormalizer/BismNormalizer/BismNormalizer.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions BismNormalizer/BismNormalizer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.0.39.0")]
[assembly: AssemblyFileVersion("5.0.39.0")]
[assembly: AssemblyVersion("5.0.41.0")]
[assembly: AssemblyFileVersion("5.0.41.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static class ComparisonFactory
// Factory pattern: https://msdn.microsoft.com/en-us/library/orm-9780596527730-01-05.aspx

private static int _minCompatibilityLevel = 1100;
private static int _maxCompatibilityLevel = 1600;
private static int _maxCompatibilityLevel = 2000;
private static List<string> _supportedDataSourceVersions = new List<string> { "PowerBI_V3" };

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public bool UseProject
_useBimFile = false;
_useDesktop = false;
_bimFile = null;
_compatibilityMode = CompatibilityMode.AnalysisServices;
}
_useProject = value;
}
Expand All @@ -89,6 +90,7 @@ public bool UseDesktop
_useProject = false;
_useBimFile = false;
_bimFile = null;
_compatibilityMode = CompatibilityMode.PowerBI;
}
_useDesktop = value;
}
Expand Down Expand Up @@ -561,6 +563,11 @@ public void InitializeCompatibilityLevel(bool closedBimFile = false)
throw new ConnectionException($"Analysis Server {this.ServerName} is not running in Tabular mode");
}

if (this.ServerName.ToUpper().StartsWith("powerbi:".ToUpper()))
{
_compatibilityMode = CompatibilityMode.PowerBI;
}

Microsoft.AnalysisServices.Database amoDatabase = null;
if (this.DatabaseName == "" && this.ServerName.ToUpper().StartsWith("localhost:".ToUpper()))
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="BismNormalizer.ea2aeb43-64a6-4dee-8816-099fb44513fa" Version="5.0.39.0" Language="en-US" Publisher="BISM Normalizer" />
<Identity Id="BismNormalizer.ea2aeb43-64a6-4dee-8816-099fb44513fa" Version="5.0.41.0" Language="en-US" Publisher="BISM Normalizer" />
<DisplayName>BISM Normalizer</DisplayName>
<Description xml:space="preserve">BISM Normalizer manages Analysis Services tabular models</Description>
<MoreInfo>http://bism-normalizer.com/</MoreInfo>
Expand Down

0 comments on commit 0d79898

Please sign in to comment.