Created
December 4, 2020 14:44
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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