Skip to content

Commit 1419e27

Browse files
Update assembly-lists.ps1
1 parent 68bf558 commit 1419e27

1 file changed

Lines changed: 21 additions & 10 deletions

File tree

private/assembly-lists.ps1

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ $script:CoreAssemblies = @(
3131
'Microsoft.SqlServer.Management.HadrData',
3232
'Microsoft.SqlServer.Management.RegisteredServers',
3333
'Microsoft.SqlServer.Management.XEvent',
34-
'Microsoft.SqlServer.Management.XEventDbScoped',
35-
'Microsoft.SqlServer.Rmo',
36-
34+
'Microsoft.SqlServer.Management.XEventDbScoped'
3735
)
3836

37+
# XEvent stuff kills CI/CD
38+
if ($PSVersionTable.OS -match "ARM64") {
39+
$script:CoreAssemblies = $script:CoreAssemblies | Where-Object { $PSItem -notmatch "XE" }
40+
}
41+
3942
# DAC-specific assemblies - required for database project and schema management
4043
$script:DacAssemblies = @(
4144
'Microsoft.SqlServer.Dac',
@@ -78,20 +81,28 @@ $script:AssemblyLoadOrder = @(
7881
'Microsoft.SqlServer.Management.HadrModel',
7982

8083
# SSIS components - reserved for future use
81-
# Analysis Services components - conditionally loaded for DSC
82-
if ($Env:SMODefaultModuleName) {
83-
'Microsoft.AnalysisServices.Core',
84-
'Microsoft.AnalysisServices',
85-
'Microsoft.AnalysisServices.Tabular',
86-
'Microsoft.AnalysisServices.Tabular.Json'
87-
}
8884

8985
# DAC components - load last due to dependencies
9086
'Microsoft.Data.Tools.Schema.Sql',
9187
'Microsoft.SqlServer.Dac',
9288
'Microsoft.SqlServer.Dac.Extensions'
9389
)
9490

91+
# Add Analysis Services components if in DSC context
92+
if ($Env:SMODefaultModuleName) {
93+
$script:AssemblyLoadOrder += @(
94+
'Microsoft.AnalysisServices.Core',
95+
'Microsoft.AnalysisServices',
96+
'Microsoft.AnalysisServices.Tabular',
97+
'Microsoft.AnalysisServices.Tabular.Json'
98+
)
99+
}
100+
101+
# XEvent stuff kills CI/CD
102+
if ($PSVersionTable.OS -match "ARM64") {
103+
$script:AssemblyLoadOrder = $script:AssemblyLoadOrder | Where-Object { $PSItem -notmatch "XE" }
104+
}
105+
95106
# Define platform-specific paths for assemblies and native dependencies
96107
$script:PlatformAssemblies = @{
97108
'Windows' = @{

0 commit comments

Comments
 (0)