I would like to add multiple CompilerOptions with CodeDom, but I cannot figure out how to do so.
What I am currently trying:
CompilerParameters cp = new CompilerParameters(referencedAssemblies, "executable file path", false);
cp.CompilerOptions = "/unsafe";
cp.CompilerOptions = "/t:winexe";
The issue is that only the latter of the two parameters is being incorporated into the output executable file. Is there some way to add CompilerOptions parameters as an array?
Thank you for any help,
Evan