I have a large application that i can build through the command line. I want to specify a flag that enables me to compile it into either one of two modes, Actual or Simulated.
So the main issue is, how can i use the preprocessor to programmatically add a reference?
For example:
#if SIMULATED
include SimulatedFiles;
myFactory = new SimulatedFiles.simFactory();
#else
myFactory = new realFactory();
I don't want any simulated files to compiled into my "actual" application. Since there is no "include" directive in C#, i am stuck on how to accomplish this.