# Multiple Target.cs

**URL:** <https://forums.unrealengine.com/t/multiple-target-cs/472114>\
**Category:** Platform & Builds\
**Tags:** build, unreal-engine, ubt, packaging-projects, question\
**Created:** [September 29, 2020, 9:48am UTC](https://forums.unrealengine.com/t/multiple-target-cs/472114 "2020-09-29T09:48:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BDjerigian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BDjerigian](https://forums.unrealengine.com/u/BDjerigian)\
**Post date:** [September 29, 2020, 9:48am UTC](https://forums.unrealengine.com/t/multiple-target-cs/472114/1 "2020-09-29T09:48:25Z")

</div>

Hello!

I am trying to create a second Target.cs file for the Demo version of my game. The idea behind it is that I wand to use the new Target.cs file to add/modify public definitions such as a IS\_DEMO flag or EOS environment IDs that need to be different from the full version.

I created a second file named MyGameDemo.Target.cs, setting TargetType to Game. But when I generate the projet files, there is a second game project named MyGameDemo, that I cannot build because it has an Invalid build configuration.

What am I doing wrong? Is there another way to have different build configurations with different code definitions?

Thanks,  
Ben
