The extension methods seem to be getting compiled into multiple rules dlls
Example .Build.cs
// In TestPlugin.Build.cs using System; using UnrealBuildTool; public class TestPlugin : ModuleRules { public TestPlugin(ReadOnlyTargetRules Target) : base(Target) { PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; this.PrintExternal(); } } public static class TestExternalClass { public static void PrintExternal(this ModuleRules Rule) { Console.WriteLine($"Called from TestExternalClass: {Rule.EngineDirectory}"); } }
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-188980 in the post.
0 |
Component | UE - Foundation - Cpp Tools - UnrealBuildTool |
---|---|
Affects Versions | 5.2 |
Target Fix | 5.4 |
Created | Jun 16, 2023 |
---|---|
Resolved | Jan 25, 2024 |
Updated | Feb 25, 2024 |