# Game Binary Built when Trying to Build Dedicated Server

**URL:** <https://forums.unrealengine.com/t/game-binary-built-when-trying-to-build-dedicated-server/320571>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 3, 2015, 7:25am UTC](https://forums.unrealengine.com/t/game-binary-built-when-trying-to-build-dedicated-server/320571 "2015-06-03T07:25:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_732a2422](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_732a2422](https://forums.unrealengine.com/u/anonymous_user_732a2422)\
**Post date:** [June 3, 2015, 7:25am UTC](https://forums.unrealengine.com/t/game-binary-built-when-trying-to-build-dedicated-server/320571/1 "2015-06-03T07:25:09Z")

</div>

I am tring to make a Dedicated Server Binary and have followed the Tutorial(s) on the wiki.

1. I downloaded and Compile the engine from source.
2. Switched the Engine Version to the source
3. Built the game with Development Editor
4. Cook content for Windows Server with UnrealFrontend
5. Made a Server Target
6. Switched the Version to Development Server
7. Rebuilt.

Now when it builds (no errors visible) it creates just the game EXE and no server EXE in Binaries/Win64.

```
using UnrealBuildTool;
using System.Collections.Generic;

public class DMZServerTarget : TargetRules
{
    public DMZServerTarget(TargetInfo Target)
    {
        Type = TargetType.Server;
        bUsesSlate = false;
    }

    //
    // TargetRules interface.
    //

    public override bool GetSupportedPlatforms(ref List<UnrealTargetPlatform> OutPlatforms)
    {
        // It is valid for only server platforms
        return UnrealBuildTool.UnrealBuildTool.GetAllServerPlatforms(ref OutPlatforms, false);
    }

    public override void SetupBinaries(
        TargetInfo Target,
        ref List<UEBuildBinaryConfiguration> OutBuildBinaryConfigurations,
        ref List<string> OutExtraModuleNames
        )
    {
        OutExtraModuleNames.Add("DMZ");
    }

    public override void SetupGlobalEnvironment(
        TargetInfo Target,
        ref LinkEnvironmentConfiguration OutLinkEnvironmentConfiguration,
        ref CPPEnvironmentConfiguration OutCPPEnvironmentConfiguration
        )
    {
        // Turn on shipping logging, this will only apply to monolithic builds
        UEBuildConfiguration.bUseLoggingInShipping = true;
        UEBuildConfiguration.bCompileSteamOSS = false;
        UEBuildConfiguration.bCompileCEF3 = false;
    }
}

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_732a2422](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_732a2422](https://forums.unrealengine.com/u/anonymous_user_732a2422)\
**Post date:** [June 3, 2015, 10:36pm UTC](https://forums.unrealengine.com/t/game-binary-built-when-trying-to-build-dedicated-server/320571/2 "2015-06-03T22:36:38Z")

</div>

I found the issue. I had to Generate Project Files after adding the server target. Works great now.
