C# CodeDom Multiple CompilerOptions -


i add multiple compileroptions codedom, cannot figure out how so.

what trying:

compilerparameters cp = new compilerparameters(referencedassemblies, "executable file path", false);  cp.compileroptions = "/unsafe"; cp.compileroptions = "/t:winexe"; 

the issue latter of 2 parameters being incorporated output executable file. there way add compileroptions parameters array?

thank help,

evan

based on usage i'm guessing can like

cp.compileroptions = "/unsafe /t:winexe"; 

if wanted build string in array need loop on array holds compiler options , append them string. assign string cp.compileroptions

msdn http://msdn.microsoft.com/en-us/library/system.codedom.compiler.compilerparameters.compileroptions.aspx


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -