# Dedicated server - compile the server code using Visual Studio ? Need help

**URL:** <https://forums.unrealengine.com/t/dedicated-server-compile-the-server-code-using-visual-studio-need-help/318095>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 10, 2015, 4:19pm UTC](https://forums.unrealengine.com/t/dedicated-server-compile-the-server-code-using-visual-studio-need-help/318095 "2015-05-10T16:19:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zoltan\_Vari](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zoltan\_Vari](https://forums.unrealengine.com/u/Zoltan_Vari)\
**Post date:** [May 10, 2015, 4:19pm UTC](https://forums.unrealengine.com/t/dedicated-server-compile-the-server-code-using-visual-studio-need-help/318095/1 "2015-05-10T16:19:23Z")

</div>

> **[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 — https://unrealcommunity.wiki/! You will be able to find content from...

So they sent me this guide but I never used c++ before and I dont know how to compile the template.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/b/02b08a28d302c4e6298d5a0305a37c6032927db7.jpeg "How to Compile in Visual Studio 2010 for C++") ](https://www.youtube.com/watch?v=aOJACXp8tqs)

I tried to do it based on this guide but I have 4 errors

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/3/e/33e75ac0f8b70f335fdb5c9fde49d89c0477922f.png)  
 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/1/0913971292aae51d1f41c0b2b740bb64e46bf3ac.png)  
“First, you need to set up a special server target for UnrealBuildTool.” - And what does this mean and how should I do it ?

“Save it as Server.Target.cs next to the other target files and regenerate the project files.”

- Where are the other target files ? Because I cant find them. I used only blueprints in my project with no c++ features added.

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/d/20d80547a5ecab41a791f68373706b1c433279cf.png)  
Thanks for help.

---

<div class="post-metadata">

**Author:** ![Detech](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Detech](https://forums.unrealengine.com/u/Detech)\
**Post date:** [May 10, 2015, 5:00pm UTC](https://forums.unrealengine.com/t/dedicated-server-compile-the-server-code-using-visual-studio-need-help/318095/2 "2015-05-10T17:00:05Z")

</div>

> 1. “First, you need to set up a special server target for  
> UnrealBuildTool.” - And what does this  
> mean and how should I do it ?

That mean you need create server.target.cs file with special code.

> 1. “Save it as Server.Target.cs next to the other target files and  
> regenerate the project files.” - Where  
> are the other target files ? Because I  
> cant find them. I used only blueprints  
> in my project with no c++ features  
> added.

Add c++ feature. Create any c++ class, empty for example and UE4Editor create Source folder with needed code for you
