File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function Get-PreloadAssemblies{
27
27
Write-Host " Getting preload assemblies in $BuildFolder for $ModuleFolder "
28
28
Add-Type - Path ([System.IO.Path ]::Combine($BuildFolder , " Az.Accounts" , " Microsoft.Azure.PowerShell.AssemblyLoading.dll" ))
29
29
$assemblyRootPath = [System.IO.Path ]::Combine($BuildFolder , " Az.Accounts" , " lib" )
30
- $conditionalAssemblyContext = [Microsoft.Azure.PowerShell.AssemblyLoading.ConditionalAssemblyContext ]::new($Host .Version )
30
+ $conditionalAssemblyContext = [Microsoft.Azure.PowerShell.AssemblyLoading.ConditionalAssemblyContext ]::new($PSVersionTable .PSEdition , $PSVersionTable .PSVersion )
31
31
[Microsoft.Azure.PowerShell.AssemblyLoading.ConditionalAssemblyProvider ]::Initialize($assemblyRootPath , $conditionalAssemblyContext )
32
32
$assemblyDict = [Microsoft.Azure.PowerShell.AssemblyLoading.ConditionalAssemblyProvider ]::GetAssemblies()
33
33
return $assemblyDict.Keys
You can’t perform that action at this time.
0 commit comments