Unreal linking debug dll on packaged builds

I’m having a bug where, whenever I package a build, my game requires vcruntime140D.dll, msvcp140D.dll, ucrtbaseD.dll and vulkan-1.dll, even though they shouldn’t be here. There are of the debug kind, ending with a D, and you get those when you install VS.

If I add them to the Binaries/Win64 folder of my packaged game, it still doesn’t work.

I’m using Visual Studio 2015.

Is there a file that holds which dll to add that could be the cause for this ?

I found out why : Using Dependency Walker on your libraries, you can track which one of them is referencing the debug DDLs. In my case, it was Assimp.

If you happen to have built them from source using CMake, then Visual Studio, make sure you selected Release in VS, at the top left, otherwise it’ll reference the debug DLLs.