【问题标题】:How do I build IronRuby on Visual C# 2008 Express Edition?如何在 Visual C# 2008 Express Edition 上构建 IronRuby?
【发布时间】:2009-09-12 13:41:59
【问题描述】:

从文档来看应该是可能的。我自己在 VS 2008 上构建它 - 所以源(Sep 8 Master)没问题。

我正在尝试在这台机器上使用 VS Express Edition 构建它。已安装 4.0 Framework Beta 1. 打开 Ruby.sln 文件; IDE 不会打开解决方案中的任何 .csproj 文件

Unable to read project file '<something>.csproj
Path to Framework\v4.0..\Microsoft.Common.Targets(2893,9): The attribute "Keep Duplicate Outputs" in element <Target> is unrecognized.

我试图从上述文件中删除违规属性。然后加载 csproj 文件,但会导致表单的构建错误

Error   54  The "Microsoft.Build.Tasks.Message" task could not be loaded from the assembly Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available. IronRuby.Tests

【问题讨论】:

    标签: ironruby


    【解决方案1】:

    您无法使用 2008 构建 4.0 项目 为此,您需要 2010 beta1(免费下载) 或者您需要在您的机器上安装 .NET 3.5 并使用 2008 重试。这对我来说确实有效,但我没有速成版。

    此外,我通常倾向于使用 Rake 进行构建(我不必为此打开 Visual Studio 会话)。 为此(使用 rake 构建),请执行以下操作

    从 ruby​​-lang.org 下载 ruby​​ 1.8 安装程序 安装红宝石 1.8 宝石安装路径名2 确保您有 .NET 3.5 并且 Windows SDK(resgen.exe 和 csc.exe)都必须存在于您的系统上,并且它们的路径必须添加到 %PATH% 变量中。 设置 %MERLIN_ROOT% = C:\path\to\ironruby_clone\Merlin\Main

    构建调试版本 耙编译

    构建发布版本 rake 编译配置=发布

    在你的发布版本中包含 ironpython 二进制文件。 rake compile:all configuration=release

    【讨论】:

    猜你喜欢
    • 2010-11-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多