# Where is the ModuleRules class defined?

**URL:** <https://forums.unrealengine.com/t/where-is-the-modulerules-class-defined/282909>\
**Category:** Platform & Builds\
**Tags:** build, buildcs, unreal-engine, building, CPP, question\
**Created:** [May 9, 2014, 10:58am UTC](https://forums.unrealengine.com/t/where-is-the-modulerules-class-defined/282909 "2014-05-09T10:58:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Milly01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Milly01](https://forums.unrealengine.com/u/Milly01)\
**Post date:** [May 9, 2014, 10:58am UTC](https://forums.unrealengine.com/t/where-is-the-modulerules-class-defined/282909/1 "2014-05-09T10:58:25Z")

</div>

Hi Everyone,

I’m looking to make some changes to our Build.cs file to improve our build process, and I have been trying to find the definition of the **ModuleRules** class to no avail.

I’ve done a search in the Unreal Engine source directories, and looked through the wiki/docs/forums.

More specifically, I want to introduce behavior that checks if entries have been added to things like ‘PublicIncludePaths’ and ‘Definitions’ (via ‘Definitions.Add(…)’ etc) and perform different tasks based on that.

Can anyone point me to any documentation/source location for the ModuleRules class itself?

Thanks

---

<div class="post-metadata">

**Author:** ![Ehamloptiran\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ehamloptiran\_1](https://forums.unrealengine.com/u/Ehamloptiran_1)\
**Post date:** [May 9, 2014, 11:28am UTC](https://forums.unrealengine.com/t/where-is-the-modulerules-class-defined/282909/2 "2014-05-09T11:28:32Z")

</div>

You will find ModuleRules in "UnrealBuildTool\System\RulesCompiler.cs abstract class starting at line 68

---

<div class="post-metadata">

**Author:** ![Milly01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Milly01](https://forums.unrealengine.com/u/Milly01)\
**Post date:** [May 9, 2014, 11:50am UTC](https://forums.unrealengine.com/t/where-is-the-modulerules-class-defined/282909/3 "2014-05-09T11:50:54Z")

</div>

Thanks, Ehamloptiran. Exactly what I needed.

---

<div class="post-metadata">

**Author:** ![RotemS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RotemS](https://forums.unrealengine.com/u/RotemS)\
**Post date:** [February 19, 2017, 5:10pm UTC](https://forums.unrealengine.com/t/where-is-the-modulerules-class-defined/282909/4 "2017-02-19T17:10:17Z")

</div>

No longer true. It is now found in UnrealBuildTool/Configuration/ModuleRules.cs

---

<div class="post-metadata">

**Author:** ![FilAl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FilAl](https://forums.unrealengine.com/u/FilAl)\
**Post date:** [October 19, 2017, 8:23am UTC](https://forums.unrealengine.com/t/where-is-the-modulerules-class-defined/282909/5 "2017-10-19T08:23:16Z")

</div>

תודה רותם  
Thank you very much! I would like to upvote your comment if it was possible. Please consider making it a separate answer.
