Trying to generate project files against 4.19 I get:
error CS0122: 'UnrealBuildTool.BuildConfiguration' is inaccessible due to its protection level
This is from a plugin bulid.cs with the following code:
It seems UnrealBuildTool.BuildConfigiration is no longer accessible from build.cs files? What is the correct way to get things like RelativeEnginePath in 4.19?
Figured it out:
These are now exposed through properties of the ReadOnlyTargetRules Target argument
So what exactly was the problem can you give the example.(Where you want to add the code )
Please tell me how to do it in detail,i don’t kown how to exposed through properties,thank you!
Where Target is the ReadOnlyTargetRules argument passed into the constructor.
thanks alot! i’ve been trying to get it working for 2 weeks.
and also for
string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, BuildConfiguration.RelativeEnginePath);
you can change it into
string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, Target.RelativeEnginePath);
to fix that issue