Skip to content

Commit 6368e20

Browse files
authored
add Microsoft.Internal.AntiSSRF.dll (#3742)
Co-authored-by: freddydk <[email protected]>
1 parent 93ac2eb commit 6368e20

4 files changed

+18
-1
lines changed

AppHandling/PsTestFunctions.ps1

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@
66
[string] $clientContextScriptPath = $null
77
)
88

9+
$antiSSRFdll = Join-Path ([System.IO.Path]::GetDirectoryName($clientDllPath)) 'Microsoft.Internal.AntiSSRF.dll'
10+
911
# Load DLL's
10-
Add-type -Path $clientDllPath
1112
Add-type -Path $newtonSoftDllPath
13+
if (Test-Path $antiSSRFdll) {
14+
Add-Type -Path $antiSSRFdll
15+
}
16+
Add-type -Path $clientDllPath
1217

1318
if (!($clientContextScriptPath)) {
1419
$clientContextScriptPath = Join-Path $PSScriptRoot "ClientContext.ps1"

AppHandling/Run-ConnectionTestToNavContainer.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ try {
151151
$clientDllPath = "C:\Test Assemblies\Microsoft.Dynamics.Framework.UI.Client.dll"
152152
if (!(Test-Path $myClientDllPath)) {
153153
Copy-Item -Path $clientDllPath -Destination $myClientDllPath
154+
$antiSSRFdll = Join-Path ([System.IO.Path]::GetDirectoryName($clientDllPath)) 'Microsoft.Internal.AntiSSRF.dll'
155+
if (Test-Path $antiSSRFdll) {
156+
Copy-Item -Path $antiSSRFdll -Destination ([System.IO.Path]::GetDirectoryName($myClientDllPath))
157+
}
154158
}
155159
} -argumentList $newtonSoftDllPath, $clientDllPath
156160

AppHandling/Run-TestsInNavContainer.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ try {
328328
$clientDllPath = "C:\Test Assemblies\Microsoft.Dynamics.Framework.UI.Client.dll"
329329
if (!(Test-Path $myClientDllPath)) {
330330
Copy-Item -Path $clientDllPath -Destination $myClientDllPath
331+
$antiSSRFdll = Join-Path ([System.IO.Path]::GetDirectoryName($clientDllPath)) 'Microsoft.Internal.AntiSSRF.dll'
332+
if (Test-Path $antiSSRFdll) {
333+
Copy-Item -Path $antiSSRFdll -Destination ([System.IO.Path]::GetDirectoryName($myClientDllPath))
334+
}
331335
}
332336
} -argumentList $newtonSoftDllPath, $clientDllPath
333337
}

HelperFunctions.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,10 @@ Function CreatePsTestToolFolder {
912912
if (!(Test-Path $myClientDllPath)) {
913913
$clientDllPath = "C:\Test Assemblies\Microsoft.Dynamics.Framework.UI.Client.dll"
914914
Copy-Item -Path $clientDllPath -Destination $myClientDllPath
915+
$antiSSRFdll = Join-Path ([System.IO.Path]::GetDirectoryName($clientDllPath)) 'Microsoft.Internal.AntiSSRF.dll'
916+
if (Test-Path $antiSSRFdll) {
917+
Copy-Item -Path $antiSSRFdll -Destination ([System.IO.Path]::GetDirectoryName($myClientDllPath))
918+
}
915919
}
916920
} -argumentList (Get-BcContainerPath -containerName $containerName -Path $newtonSoftDllPath), (Get-BcContainerPath -containerName $containerName -Path $clientDllPath)
917921
}

0 commit comments

Comments
 (0)