Building Dedicated Server returns error

Hi, I’m trying to follow tutorial here to build a dedicated server. I’ve got to the step of making my Server.Target.cs file. But I can’t get it to build properly. This is my code in the MyProject2Server.Target.cs file:

using UnrealBuildTool;
using System.Collections.Generic;

public class MyProject2ServerTarget : TargetRules
    public MyProject2ServerTarget(TargetInfo Target)
		Type = TargetType.Server;
		bUsesSteam = false;

	// TargetRules interface.

	public override void SetupBinaries(
		TargetInfo Target,
		ref List<UEBuildBinaryConfiguration> OutBuildBinaryConfigurations,
		ref List<string> OutExtraModuleNames

But it keeps throwing an error, the error is : The type of namespace name ‘SupportedPatforms’ could not be found

Am I supposed to add something else? Can someone help with this?

Hey Mantracker,

Try running through the guide below instead:

It’s a bit simpler, and I’ve used this many times with no error in 4.14.

Let me know if that works. I recommend trying this in a clean project just to ensure there aren’t any errors with the project you’re currently working in.

Have a great day