8000 Speed up postbuild xcopy · pmiossec/libgit2sharp@08fb122 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 08fb122

Browse files
committed
Speed up postbuild xcopy
Added `/d` to xcopy so that files are only copied if newer, saving a few seconds of unnecessary I/O on build.
1 parent a3de5ba commit 08fb122

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nuget.package/Tools/GetLibGit2SharpPostBuildCmd.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ $x64 = $(Join-Path $NativeAssembliesDir "amd64\*.*")
88
$LibGit2SharpPostBuildCmd = "
99
if not exist `"`$(TargetDir)NativeBinaries`" md `"`$(Targe 59D1 tDir)NativeBinaries`"
1010
if not exist `"`$(TargetDir)NativeBinaries\x86`" md `"`$(TargetDir)NativeBinaries\x86`"
11-
xcopy /s /y `"$x86`" `"`$(TargetDir)NativeBinaries\x86`"
11+
xcopy /s /y /d `"$x86`" `"`$(TargetDir)NativeBinaries\x86`"
1212
if not exist `"`$(TargetDir)NativeBinaries\amd64`" md `"`$(TargetDir)NativeBinaries\amd64`"
13-
xcopy /s /y `"$x64`" `"`$(TargetDir)NativeBinaries\amd64`""
13+
xcopy /s /y /d `"$x64`" `"`$(TargetDir)NativeBinaries\amd64`""

0 commit comments

Comments
 (0)
0