c# - Do we really need to hard code DLLs -


let's want write small program can give .cs file , can compile , if there compilation erors or not. used codedom this. when want use codedom have add dll names can load them @ run time. this:

    compilerparameters parameters = new compilerparameters();     parameters.referencedassemblies.add("system.dll");     parameters.referencedassemblies.add("system.windows.forms.dll"); 

but there problems approach: how can make sure have imcluded necessary dlls? way? there better ways instead of adding these dlls this?

thanks.

you don't need hard-code anything. imagine calling add() in loop, using dll names read text file -- or found in directory @ runtime, matter. have tools need write flexible.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -