0

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?

Groger
  • 469
  • 2
  • 14
  • [This](https://github.com/dotnet/runtime/issues/45342) seems to indicate it is a .NET 5.0 issue, though I can't resolve it with their instructions. – Groger Sep 22 '21 at 16:08

0 Answers0