Next, make the DLL a dependency so it gets copied automatically: string pluginDLLPath = PATH_TO_YOUR_DLL_FILE No valid existing file found, copy new dllįile.Copy(Filepath, Path.Combine(FullBinariesDir, Filename), true) String FullExistingPath = Path.Combine(FullBinariesDir, Filename) String FullBinariesDir = Path.GetFullPath(BinariesDir) ĭirectory.CreateDirectory(FullBinariesDir) String Filename = Path.GetFileName(Filepath) String BinariesDir = Path.Combine(GetUProjectPath(), "Binaries", ()) Private string CopyToProjectBinaries(string Filepath, ReadOnlyTargetRules Target) Return Path.Combine(ModuleDirectory, "./././.") build.cs file.įirst, a couple helper functions to copy the DLL: public string GetUProjectPath() Adding the copied DLL to the runtime dependencies.Įverything below goes into your.This is a few months old, but since nobody has answered you, there are 2 steps:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |