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
{
[SupportedPlatforms(UnrealPlatformClass.Server)]
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
)
{
OutExtraModuleNames.Add("MyProject2");
}
}
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?