Automatically copy external dll into packaged Binaries?

Hi there…

My Project uses some third-party libs… like the discord sdk…

Currently, i need to copy that SDK dll into the packaged Game’s Binaries Folder to make the discord rich presence run properly in the shipping build.

Since many of the tuts out there are more confusing and on a a level of understanding the building process, that i’m not into… i ask here perhaps for a short answer.

My DLL is sitting inside the Projects root Directory (where the uproj file is sitting).
And i want it to be automatically copied over to the packaged Game’s Binaries Folder, whenever i package the Game.

What do i need to do, to achieve that? :slightly_smiling_face:

silent bump

sweet little push

pushy pushy…

Managed to fix this with some help.

for any interest:

if (Target.Platform == UnrealTargetPlatform.Win64)
    {			RuntimeDependencies.Add("TargetDirectory/Filename.dll", "OriginDirectory/Filename.dll");
    }
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.