下载了 IronRuby 1.1.3,但找不到 IronRuby.dll 或 IronRuby.Libraries.dll 来引用

发布于 2024-12-20 04:13:33 字数 317 浏览 6 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

晌融 2024-12-27 04:13:33

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.

萌辣 2024-12-27 04:13:33

如果您使用的是 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').

花想c 2024-12-27 04:13:33

当您前往 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.

浮生面具三千个 2024-12-27 04:13:33

请按照以下步骤操作:

  1. 下载安装程序并运行安装程序。
  2. 下载二进制文件解压缩覆盖 在 %ProgramFiles(x86)%\IronRuby 1.1 上,如果您运行的是 64 位 WindOS 或 %ProgramFiles%\IronRuby 1.1,如果您运行的是 32 位操作系统。
  3. 如果您运行的是 64 位操作系统,请将 IronRuby 1.1 文件夹从 %ProgramFiles(x86)% 复制到 %ProgramFiles%
  4. 启动 Visual Studio,它应该可以正常工作。

注意:如果你想在命令提示符下使用 igem、iirb(等)命令,请在 System > 下添加变量 IronRuby。高级系统设置>值为 %ProgramFiles%\IronRuby 1.1 的用户变量 或者简单地将其附加到系统变量下的路径

Follow these steps:

  1. Download the installer and run the setup.
  2. Download the binaries and unzip and overwrite on %ProgramFiles(x86)%\IronRuby 1.1, if you are running 64-bit WindOS OR %ProgramFiles%\IronRuby 1.1, if you are running 32-bit OS.
  3. If you are running 64-bit OS, copy the IronRuby 1.1 folder from %ProgramFiles(x86)% to %ProgramFiles%.
  4. Launch Visual Studio and it should work fine.

Note: if you want to use igem, iirb (etc.) commands in command prompt, add a variable IronRuby under System > Advanced System Settings > User variables with the value %ProgramFiles%\IronRuby 1.1 OR simply append it to the path under System variables.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文