Instead of having script/assembly probing directories specified in global config file (css_config.xml) you can add them only for a particular script execution. This can be achieved by placing a special directive in the script file. Thus you can specify directly in script code where the CS-Script engine should search for files to be loaded at runtime:
path - absolute or relative path of the directory to be added to the CS-Script search directories.
The shorter alias directive //css_dir can be used in place of the //css_searchdir.
//css_dir ..\..\MyAssemblies; //css_dir C:\CommonAssemblies; using System; class Script { static public void Main( string [] args) { ... } } |