IronRuby /动态语言运行时的网络类加载器?

时间:2011-09-12 20:40:16

标签: c# dynamic-language-runtime

就像现在一样,我可以加载一个本地文件:

engine.ExecuteFile("c:/myclass.rb");

但是DLR引发了一个例外:

 engine.ExecuteFile("ftp://localhost/myclass.rb");

我确信如果它甚至不能这样做,那么它可能无法自动通过网络加载类。

有谁知道如何在网络上加载DLR(动态语言运行时)?

1 个答案:

答案 0 :(得分:0)

这是正确的 - 它只能通过“标准文件打开”调用从可解析的路径加载文件 - 因此以ftp://开头的路径不符合该定义...有关进一步参考,请参阅MSDN示例http://blogs.msdn.com/b/seshadripv/archive/2008/07/28/various-ways-to-execute-script-using-the-dlr-hosting-api.aspxhttp://dlr.codeplex.com/wikipage?title=Docs%20and%20specs&referringTitle=Documentation

相关问题