Skip to content

Instantly share code, notes, and snippets.

@friism
Created April 22, 2012 07:42
Show Gist options
  • Save friism/2462546 to your computer and use it in GitHub Desktop.
Save friism/2462546 to your computer and use it in GitHub Desktop.
SqlServerCompact PostBuildEvent
Existing:
if not exist "$(TargetDir)x86" md "$(TargetDir)x86"
xcopy /s /y "$(SolutionDir)packages\SqlServerCompact.4.0.8482.1\NativeBinaries\x86\*.*" "$(TargetDir)x86"
if not exist "$(TargetDir)amd64" md "$(TargetDir)amd64"
xcopy /s /y "$(SolutionDir)packages\SqlServerCompact.4.0.8482.1\NativeBinaries\amd64\*.*" "$(TargetDir)amd64"</PostBuildEvent>
Proposed:
if not exist "$(TargetDir)x86" md "$(TargetDir)x86"
start /MIN xcopy /s /y "$(SolutionDir)packages\SqlServerCompact.4.0.8482.1\NativeBinaries\x86\*.*" "$(TargetDir)x86"
if not exist "$(TargetDir)amd64" md "$(TargetDir)amd64"
start /MIN xcopy /s /y "$(SolutionDir)packages\SqlServerCompact.4.0.8482.1\NativeBinaries\amd64\*.*" "$(TargetDir)amd64"</PostBuildEvent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment