下载了 IronRuby 1.1.3,但找不到 IronRuby.dll 或 IronRuby.Libraries.dll 来引用
我正在尝试使用 Visual Studio 2010 在 ac# 程序中引用 IronRuby、IronRuby.Libraries、Microsoft.Scripting、Microsoft.Scripting.Core 和 Microsoft.Scripting.ExtensionAttribute。
我读到您可以在 C:\Program 下找到这些 .dll Files\IronRuby 1.1\Lib\ironruby 但那里没有 .dll 文件。我已经到处寻找这些文件,但找不到它们。我也在网上搜索了一遍并搜索了这方面的信息,但找不到任何有帮助的信息。
任何帮助将不胜感激。
I am trying to reference IronRuby, IronRuby.Libraries, Microsoft.Scripting, Microsoft.Scripting.Core, and Microsoft.Scripting.ExtensionAttribute in a c# program using Visual Studio 2010.
I read that you can find these .dll's under C:\Program Files\IronRuby 1.1\Lib\ironruby but there are no .dll files there. I've looked all over for these files but cannot find them. I've also searched and searched on the web for information on this and cannot find anything that helps.
Any help will be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Jacob,您可以下载包含二进制文件的 zip 文件:
保留请注意,它们也是由 MSI,但程序集会放入 GAC 中,不会保留在安装目录中。如果您在 C:\Windows\Microsoft.NET\ assembly\GAC_MSIL 中查找,则可以找到它们。
此行为在 中进行了解释此错误报告。
另外,您还提到了 Microsoft.Scripting.Core.dll 和 Microsoft.Scripting.ExtensionAttribute.dll。这些程序集不是 .NET 4.0 安装程序的一部分,因为这些位包含在 .NET 4.0 的 System.Core.dll 中。仅当针对 .NET 4.0 之前的任何版本时才需要这些程序集。
Jacob, you can download a zip file which contains the binaries:
Keep in mind, they are also installed by the MSI, but the assemblies are put into the GAC and are not kept in the installation directory. You can find them if you look in C:\Windows\Microsoft.NET\assembly\GAC_MSIL
This behavior is explained in this bug report.
Also, you mentioned Microsoft.Scripting.Core.dll and Microsoft.Scripting.ExtensionAttribute.dll. Those assemblies are not part of the .NET 4.0 installer, as those bits are included .NET 4.0's System.Core.dll. Those assemblies are only required when targeting anything earlier than .NET 4.0.
如果您使用的是 VS 2010,最简单的方法可能是安装 Nuget Package Manager 并通过 Nuget 添加 IronRuby 引用(右键单击项目,选择“管理 Nuget 包”,搜索 IronRuby,然后点击“安装”)。
If you're using VS 2010, simplest way is probably to install Nuget Package Manager and add the IronRuby reference via Nuget (right click on the project, select 'Manage Nuget Packages', search for IronRuby, and hit 'Install').
当您前往 Codeplex 下载代码时,选择您要查找的版本(在您的情况下为 1.1.3),然后在“其他可用下载”下查找其中包含 IronRuby 1.1.3 二进制文件(包括 Windows Phone 7 的二进制文件)。这只是一个 .zip 文件,bin 目录下是您要查找的 .dll。
When you go to Codeplex to download the code, select the version you are looking for (1.1.3 in your case) and look under "Other Available Downloads" which has IronRuby 1.1.3 Binaries (includes binaries for Windows Phone 7). This is just a .zip file and under the bin directory are the .dlls that you are looking for.
请按照以下步骤操作:
注意:如果你想在命令提示符下使用 igem、iirb(等)命令,请在
System > 下添加变量
或者简单地将其附加到系统变量下的路径。IronRuby
。高级系统设置>值为%ProgramFiles%\IronRuby 1.1
的用户变量Follow these steps:
Note: if you want to use igem, iirb (etc.) commands in command prompt, add a variable
IronRuby
underSystem > Advanced System Settings > User variables
with the value%ProgramFiles%\IronRuby 1.1
OR simply append it to the path under System variables.