Modify the skip strong name script

This commit is contained in:
Sam Xu 2020-01-24 12:53:26 -08:00
parent 0ebaca1574
commit e3ec0bafac

View file

@ -131,20 +131,17 @@ Function GetDlls
Function SkipStrongName Function SkipStrongName
{ {
$SnLog = $LOGDIR + "\SkipStrongName.log"
Out-File $SnLog
Write-Host 'Skip strong name validations for Microsoft.OpenApi.OData assemblies...' Write-Host 'Skip strong name validations for Microsoft.OpenApi.OData assemblies...'
$dlls = GetDlls $dlls = GetDlls
ForEach ($dll in $dlls) ForEach ($dll in $dlls)
{ {
& $SN /Vr $dll | Out-File $SnLog -Append & $SN /Vr $dll
} }
ForEach ($dll in $dlls) ForEach ($dll in $dlls)
{ {
& $SNx64 /Vr $dll | Out-File $SnLog -Append & $SNx64 /Vr $dll
} }
Write-Host "SkipStrongName Done" -ForegroundColor $Success Write-Host "SkipStrongName Done" -ForegroundColor $Success