Skip to content

Commit

Permalink
update missing assembly files for Azure.Core
Browse files Browse the repository at this point in the history
  • Loading branch information
erich-wang authored and blueww committed Apr 13, 2020
1 parent e6d5350 commit 7369cfb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
16 changes: 14 additions & 2 deletions tools/AzureRM.Example.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ if($PSEdition -eq 'Desktop' -and (Test-Path $preloadPath -ErrorAction Ignore))
try
{
Get-ChildItem -ErrorAction Stop -Path $preloadPath -Filter "*.dll" | ForEach-Object {
Add-Type -Path $_.FullName -ErrorAction Ignore | Out-Null
try
{
Add-Type -Path $_.FullName -ErrorAction Ignore | Out-Null
}
catch {
Write-Warning $_
}
}
}
catch {}
Expand All @@ -72,7 +78,13 @@ if($PSEdition -eq 'Core' -and (Test-Path $netCorePath -ErrorAction Ignore))
$matches = ($loadedAssemblies | Where-Object {$_.Name -eq $assemblyName.Name})
if (-not $matches)
{
Add-Type -Path $_.FullName -ErrorAction Ignore | Out-Null
try
{
Add-Type -Path $_.FullName -ErrorAction Ignore | Out-Null
}
catch {
Write-Warning $_
}
}
}
}
Expand Down

0 comments on commit 7369cfb

Please sign in to comment.