Multiple Target.cs


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?