File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function Test-DotNet
13
13
{
14
14
try
15
15
{
16
- if ((Get-PSDrive ' HKLM' - ErrorAction Ignore) -and (-not (Get-ChildItem ' HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' - ErrorAction Stop | Get-ItemPropertyValue - ErrorAction Stop - Name Release | Where { $_ -ge 461808 })))
16
+ if ((Get-PSDrive ' HKLM' - ErrorAction Ignore) -and (-not (Get-ChildItem ' HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' - ErrorAction Stop | Get-ItemPropertyValue - ErrorAction Stop - Name Release | Where-Object { $_ -ge 461808 })))
17
17
{
18
18
throw " .NET Framework versions lower than 4.7.2 are not supported in Az. Please upgrade to .NET Framework 4.7.2 or higher."
19
19
}
@@ -66,7 +66,7 @@ if($PSEdition -eq 'Core' -and (Test-Path $netCorePath -ErrorAction Ignore))
66
66
{
67
67
try
68
68
{
69
- $loadedAssemblies = ([System.AppDomain ]::CurrentDomain.GetAssemblies() | % {New-Object - TypeName System.Reflection.AssemblyName - ArgumentList $_.FullName } )
69
+ $loadedAssemblies = ([System.AppDomain ]::CurrentDomain.GetAssemblies() | ForEach-Object {New-Object - TypeName System.Reflection.AssemblyName - ArgumentList $_.FullName } )
70
70
Get-ChildItem - ErrorAction Stop - Path $netCorePath - Filter " *.dll" | ForEach-Object {
71
71
$assemblyName = ([System.Reflection.AssemblyName ]::GetAssemblyName($_.FullName ))
72
72
$matches = ($loadedAssemblies | Where-Object {$_.Name -eq $assemblyName.Name })
You can’t perform that action at this time.
0 commit comments