Download

Error compiling for Dedicated Server after adding server target: UEBuildBinaryConfiguration

After downloading the source code and compiling the engine I’m now trying to add my server target file (used this template), but when trying to either package the project or generate new project files, it gives me this error:


The type or namespace name 'UEBuildBinaryConfiguration' could not be found (are you missing a using directive or an assembly reference?)

I’ve followed multiple tutorials on setting up a dedicated server, googled and still can’t find an answer to this problem. I tried to re-compile the engine, but to no avail.

Any ideas? I’m currently using the release branch.

Having the same issue. did you resolve it yet?

Also running into this issue :frowning: Any luck resolving this?

Hi,

You do not need the overrides as the required logic is included inside the TargetRules.cs file itself. (UE 4.24)
(see C:\Program Files\Epic Games\UE_4.24\Engine\Source\Programs\UnrealBuildTool\Configuration\TargetRules.cs file)

Just use the following code to XYZ/Source/XYZServer.Target.cs



using UnrealBuildTool;
using System.Collections.Generic;


public class XYZServerTarget : TargetRules
{

    public XYZServerTarget(TargetInfo Target) : base(Target)
    {
        Type = TargetType.Server;
        DefaultBuildSettings = BuildSettingsVersion.V2;
        ExtraModuleNames.AddRange( new string] { "XYZ" } );

    }

} 

and do not forget to change the XYZ above to your Project name.

Bala