-
Notifications
You must be signed in to change notification settings - Fork 24
/
CheckMissingDLLs.ps1
30 lines (24 loc) · 1.71 KB
/
CheckMissingDLLs.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if ($ghAction -ne "yes")
{
$SolutionDir = "$((Get-Location).Path)\..\.."
$TargetDir = "$((Get-Location).Path)"
}
if (-not (Test-Path ".\bin\Debug"))
{
New-Item "$($SolutionDir)bin\Debug" -ItemType Directory -Force
}
if (-not (Test-Path ".\bin\Debug\System.IO.dll" -PathType Leaf)) {
Copy-Item "$($SolutionDir)\packages\System.IO.4.3.0\lib\net462\System.IO.dll" "$($TargetDir)\System.IO.dll"
}
if (-not (Test-Path ".\bin\Debug\System.Net.Http.dll" -PathType Leaf)) {
Copy-Item "$($SolutionDir)\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll" "$($TargetDir)\System.Net.Http.dll"
}
if (-not (Test-Path ".\bin\Debug\System.Runtime.dll" -PathType Leaf)) {
Copy-Item "$($SolutionDir)\packages\System.Runtime.4.3.0\lib\net462\System.Runtime.dll" "$($TargetDir)\System.Runtime.dll"
}
if ((-not (Test-Path ".\bin\Debug\System.Security*.dll" -PathType Leaf)) -or ((Get-ChildItem ".\bin\Debug\System.Security*.dll").Count -lt 4)) {
Copy-Item "$($SolutionDir)\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net463\System.Security.Cryptography.Algorithms.dll" "$($TargetDir)\System.Security.Cryptography.Algorithms.dll"
Copy-Item "$($SolutionDir)\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll" "$($TargetDir)\System.Security.Cryptography.Encoding.dll"
Copy-Item "$($SolutionDir)\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll" "$($TargetDir)\System.Security.Cryptography.Primitives.dll"
Copy-Item "$($SolutionDir)\packages\System.Security.Cryptography.X509Certificates.4.3.0\lib\net461\System.Security.Cryptography.X509Certificates.dll" "$($TargetDir)\System.Security.Cryptography.X509Certificates.dll"
}