We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb6f08a commit 6301288Copy full SHA for 6301288
lib/NativeCode/DynamicLibraryLoaderHelper/NativeRender/scripts/prebuild.ps1
@@ -21,10 +21,13 @@ if ($Configuration -eq "Debug")
21
)
22
23
$filesToCopy | ForEach-Object {
24
- $itemBeingCopied = Get-Item $_;
+ if (-Not(Test-Path -LiteralPath $_)) {
25
+ Write-Host ("WARNING: Could not copy file '{0}' because it does not exist. This might not be a problem." -f $_);
26
+ continue
27
+ }
28
29
+ $itemBeingCopied = Get-Item $_;
30
Write-Host ('Copying file "{0}" to "{1}".' -f $itemBeingCopied.FullName, $TargetDir);
-
31
Copy-Item -LiteralPath $itemBeingCopied.FullName -Destination $TargetDir -Force;
32
}
33
0 commit comments