0

从文档来看应该是可能的。我自己在 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
4

1 回答 1

0

你不能用 2008 构建 4.0 项目为此你需要 2010 beta1(它是免费下载的)或者你需要在你的机器上安装 .NET 3.5 并用 2008 再试一次。这对我有用,但我没有快递版。

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

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

构建一个调试版本 rake compile

构建发布版本 rake compile configuration=release

也将 Ironpython 二进制文件包含在您的发布版本中。rake 编译:所有配置=发布

于 2009-09-23T08:34:48.180 回答