Skip to content

Instantly share code, notes, and snippets.

@Fireforge
Created December 22, 2019 03:15
Show Gist options
  • Save Fireforge/9eda750efb95fae04a314c3023affed5 to your computer and use it in GitHub Desktop.
Save Fireforge/9eda750efb95fae04a314c3023affed5 to your computer and use it in GitHub Desktop.
VisualStudio Robocopy post-build: A post-build command for running robocopy to copy over native dependencies
;; Silent: /NP /NFL /NDL /NJH /NJS /NC /NS
;; Copy native build into Debug and Release:
if $(ConfigurationName) == Debug ((robocopy $(SolutionDir)..\..\build\native $(TargetDir) *.dll *.pdb /NP ) ^& IF %ERRORLEVEL% LEQ 1 exit 0)
if $(ConfigurationName) == Release ((robocopy $(SolutionDir)..\..\build\native $(TargetDir) *.dll /XF *_d.dll /NP ) ^& IF %ERRORLEVEL% LEQ 1 exit 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment