I am trying to get a dedicated server built with ue4 4.20. However whenever I try and build the server in visual studio I get the error
Severity Code Description Project File Line Suppression State
Error
Couldn't find target rules file for target 'UE4Server' in rules assembly 'UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. MMOgame C:\Users\akrol\Desktop\MainBuild\MMOgame\Intermediate\ProjectFiles\UnrealBuildTool 1
I have a server target though and here is what is in it
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.Collections.Generic;
[SupportedPlatforms(UnrealPlatformClass.Server)]
public class MMOgameServerTarget : TargetRules // Change this line as shown previously
{
public MMOgameServerTarget(TargetInfo Target) : base(Target) // Change this line as shown previously
{
Type = TargetType.Server;
ExtraModuleNames.Add("MMOgame"); // Change this line as shown previously
}
}
Does anyone know how to fix this by chance I have looked around but haven’t found any solutions that helped