Skip to content

Instantly share code, notes, and snippets.

@somapatrik
Created December 4, 2020 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save somapatrik/1fa44ed964a707b665c3c60b7a636895 to your computer and use it in GitHub Desktop.
Save somapatrik/1fa44ed964a707b665c3c60b7a636895 to your computer and use it in GitHub Desktop.
Pre-Build Event to copy correct dll file to output directory. Everything must be without empty lines or errors will occur.
if $(PlatformName) == x86 (
echo "Copy dll for x86"
xcopy "$(ProjectDir)MyFolder\FolderForX86\mylib.dll" /Y
) else (
echo "Copy dll for x64"
xcopy "$(ProjectDir)MyFolder\FolderForX64\mylib.dll" /Y
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment