Hello,
I'm proposing a change to the post-build event settings to allow project paths containing spaces character to fix MSB3073 error in post-build event.
Context
The path where I put libgpg-error contains a space character!
(C:\Users\toto\Documents\Softs PC\External\libgcrypt\ShiftMediaProject\libgcrypt)
I knew it wasn't a good idea but... I did it!
Expected Behavior
Correct build
Actual Behavior
MSB3073 error in post-build event
Steps to Reproduce
Use a path who contains spaces character
Your Environment
- Version Used: Microsoft Visual Studio Professional 2019 Version 16.11.34
- Operating System and Version: Win10
Possible Fix
I have fixed this issue by adding quotation marks around $(OutDir) where it wasn't already done.
mkdir "$(OutDir)"\include
copy .\gcrypt.h "$(OutDir)"\include
mkdir "$(OutDir)"\licenses
copy ..\COPYING.LIB "$(OutDir)"\licenses\libgcrypt.txt
if exist "$(ProjectDir)"....\prebuilt\include\gpg-error.h (
copy "$(ProjectDir)"....\prebuilt\include\gpg-error.h "$(OutDir)"\include
)