The GameLift preprocessors are the same in profile and profile_deidcated configs in Visual Studio

Hi dev team,

I have a server/client implementation that the codes are separated by the preprocessors. I switch between different implementations by profile and profile_dedicated config inside Visual Studio but there is no difference between GameLift preprocessors in different configs. In both cases, the


has been set in my project.

It is expected that the


is set to profile_dedicated mode.

This can disrupt the server’s implementation because Visual Studio lets you use client-side-only functions of the GameLift in the dedicated-server codes.

Lumberyard 1.18

Visual Studio 2017

I figured it out! you can define BUILD_GAMELIFT_SERVER in all dedicated configs by changing this file:


just replace




then rebuild the dedicated server and recreate Visual Studio solution.

I’m not sure if this is the right way, but it works for me :slight_smile: