I am attempting to move my dependencies into a sub-folder of my build in order to clean up. I am following the instructions found in this answer.
When I add the following post-build event, the executable no longer works. Rather it opens, then immediately crashes.
; Move all assemblies and related files to lib folder
ROBOCOPY "$(TargetDir) " "$(TargetDir)lib\ " /XF *.exe *.config *.manifest /XD lib logs data /E /IS /MOVE
if %errorlevel% leq 4 exit 0 else exit %errorlevel%
Looking at my original build, if I manually move the DLLs, I run into similar issues.
I can draw from this that the issue is that my executable cannot find the dependencies when they are in a sub-folder. How can I get my project to recognize them from another folder?