# Build.cs target.cs documentation reference

**URL:** <https://forums.unrealengine.com/t/build-cs-target-cs-documentation-reference/414728>\
**Category:** Feedback & Requests\
**Tags:** buildcs, unreal-engine, documentation, question\
**Created:** [January 16, 2018, 7:36pm UTC](https://forums.unrealengine.com/t/build-cs-target-cs-documentation-reference/414728 "2018-01-16T19:36:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkgaze](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@darkgaze](https://forums.unrealengine.com/u/darkgaze)\
**Post date:** [January 16, 2018, 7:36pm UTC](https://forums.unrealengine.com/t/build-cs-target-cs-documentation-reference/414728/1 "2018-01-16T19:36:22Z")

</div>

Hi all. This is a question that I suppose everybody that starts with this will be questioning themselves.

- What language is build.cs written in, so that we can search for documentation? (is it c#?)
- When I move code that works on the “target.cs” file, to a plugin “build.cs” file, many variables stop working. Why?

While both files are .cs files and include barely nothing else, why do they use different variables, and what do we search for to get help?

Examples:

- Console.Log to print now should be something like Log.TraceInformation. This works. Why? . I searched Console.WriteLine and it’s a C# function, but it doesn’t work here.
- Path.GetFullPath, Path.Combine… to get paths… now doesn’t work. Path doesn’t exist. I read DirectoryReference.GetCurrentDirectory() should be used to get the current path, for example. But it doesn’t work either.

---

<div class="post-metadata">

**Author:** ![darkgaze](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@darkgaze](https://forums.unrealengine.com/u/darkgaze)\
**Post date:** [January 16, 2018, 7:39pm UTC](https://forums.unrealengine.com/t/build-cs-target-cs-documentation-reference/414728/2 "2018-01-16T19:39:36Z")

</div>

Found one of the answers: [https://docs.unrealengine.com/latest/INT/Programming/UnrealBuildSystem/ModuleFiles/](https://docs.unrealengine.com/latest/INT/Programming/UnrealBuildSystem/ModuleFiles/)

build.cs is written in C# as I was expecting. But I still don’t get why I can’t use stuff that I was using in the Target.cs file.

---

<div class="post-metadata">

**Author:** ![darkgaze](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@darkgaze](https://forums.unrealengine.com/u/darkgaze)\
**Post date:** [January 16, 2018, 7:51pm UTC](https://forums.unrealengine.com/t/build-cs-target-cs-documentation-reference/414728/3 "2018-01-16T19:51:28Z")

</div>

I found another answer while learning in case somebody is interested:

To find documentation, search here:

> **[.NET API browser](https://learn.microsoft.com/en-us/dotnet/api/?view=netframework-4.7)**
>
> Learn more about: .NET API browser

Seems like the difference was that I need to include System for Path and [System.IO](http://System.IO) to use Console. To do this in C# add:

using System

using [System.IO](http://System.IO)

A new question arises: Which version of c# is Unreal Engine 4.18 using?
