Macro in server target is not setting Steam game name

I think I solved the issue.

In the *Server.Target.cs I was using…
ProjectDefinitions.Add("***");

I switched it to…
GlobalDefinitions.Add("***");

It is working with GlobalDefinitions.Add()

I’m guessing that since the macros are located in the OnlineSubsystemSteam plugin which is part of the engine, ProjectDefinitions is not able to set the macros there.

I will test further to make sure it works consistently.

EDIT:
I tested it and it works.
I have three target files (I’m not sure if the macros need to be added to editor target)…

Use ProjectDefinitions.Add("***") for editor target or it will not compile in Visual Studio
*Editor.Target.cs

Use GlobalDefinitions.Add("***") for game and server targets
*Server.Target.cs
*.Target.cs