# Building Dedicated Server returns error

**URL:** <https://forums.unrealengine.com/t/building-dedicated-server-returns-error/387161>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 7, 2017, 2:10am UTC](https://forums.unrealengine.com/t/building-dedicated-server-returns-error/387161 "2017-03-07T02:10:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mantracker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mantracker](https://forums.unrealengine.com/u/Mantracker)\
**Post date:** [March 7, 2017, 2:10am UTC](https://forums.unrealengine.com/t/building-dedicated-server-returns-error/387161/1 "2017-03-07T02:10:09Z")

</div>

Hi, I’m trying to follow tutorial [here](https://wiki.unrealengine.com/Dedicated_Server_Guide_(Windows_%26_Linux)) 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?

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [March 7, 2017, 3:11pm UTC](https://forums.unrealengine.com/t/building-dedicated-server-returns-error/387161/2 "2017-03-07T15:11:48Z")

</div>

Hey Mantracker,

Try running through the guide below instead:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

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
