Hi,
Do you know how is the 3rd party DLL accessing the current directory? If it is just using the current directory, then you can try changing it using System.IO.Directory.SetCurrentDirectory("...").

If it is using Environment.GetCommandLineArgs() then I don't know about any good trick. The only option I can think of is copying FSI and required files to some directory where writing is allowed (I tried it and in the latest version the required files are fsi.exe, FSharp.Interactive.Settings.dll, Microsoft.Research.AbstractIL.dll and probably also fslib.dll and mllib.dll).

By on 10/2/2007 12:33 PM ()

if it was using the current directory, that would be fine!

your second solution should have been blindingly obvious to
me - i thought of that last night. hopefully that will work.
is it really necessary to copy the other DLLs as well?
are DLLs found through paths relative to each other?

i'm sorry, this topic has strayed far away from F#!
thanks for the response.

By on 10/3/2007 1:29 AM ()

copying fsi.exe worked fine, although the dependency list is longer than you indicated - i ended up just copying all the dlls in the bin directory (i presume there's a way of inspecting dlls to see what their dependencies are, but if so i haven't found it yet)

thanks!

By on 10/3/2007 5:03 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper