Generating c# programatically and compiling...issues
<p>Hello all,
              We are creating a dll on the fly for security, we are attempting to have a dll generated and pushed to clients as a challenge response system... with this we are generating 20 variables each with a unique guid and then programatically selecting which one is referenced in the code... however once it compiles this it no longer has the extra dummy variables in it, just the one that it used.</p>

<p>Does anyone know what i can change in the compiler options to make it stop doing this or trick it into no optimizing those out?</p>

<p>I've tried</p>

<pre><code>U = "71d41342-e56e-4643-b12f-24df0b4506ae";
System.Diagnostics.Debug.WriteLine(U);
string V = "";
</code></pre>

<p>referencing it in debug writeline but that didnt seem to be enough to get it to keep it. i also added /Od to disablke optimizations but this didnt seem to help either! Any help would be appreciated</p>
