Hi Petro.
I'm studying the posibilites of loading a custom configuration (RuntimeConfig.xml) and have noticed something it could be improved. Suppose we have a very simple script:
Console.WriteLine('Hello world!');
If we initialize using RuntimeHost.Initialize(); everything works as expected.
If we initialize using RuntimeHost.Initialize(new FileStream(...)) reading a RuntimeConfig.xml in which we have added one custom Assembly, and the path to the DLL is incorrect, the initialization process must fails at some point because we get this error: Namespace 'Console' is not found.
I have searched through the code up to BaseAssemblyManager.LoadAssemblies(). Method Assembly.Load() produces an exception (because the file is not found) which is caught at RuntimeHost.Initialize() try-finally block, thus not fulfilling the initialization process.
In the same way you check for duplicates before adding an assembly, maybe a simple if System.IO.File.Exists could be added before reference.Load(). What do you think?
Thank you very much for this awesome work!