【问题标题】:Iron Ruby in Windows Visual StudioWindows Visual Studio 中的 Iron Ruby
【发布时间】:2011-12-20 00:18:17
【问题描述】:

我一直在尝试使用 Iron Ruby 1.1 版和 Ruby in Steel for Windows Visual Studio 2010 创建一个 Windows 应用程序。我多次尝试启动一个新的 Iron Ruby Windows 应用程序项目。我能够创建这样的项目,但是,在创建后,该项目只是一个 .rb 文件。我的问题是如何在 [Design] 模式下创建 Windows 窗体文件?

【问题讨论】:

    标签: ruby winforms visual-studio ironruby ruby-in-steel


    【解决方案1】:

    Iron Ruby 目前在 WinForms 中缺乏对设计器的任何支持。您必须手动编写代码,设计师正在为您完成大部分工作。

    有人 wrote a tool 将 C# 设计器代码转换为 Ruby,但这对 WinForms 设计器的支持与 Iron Ruby 一样多。

    以后可能会添加对设计器功能的支持,无论是第三方的还是官方的,但目前还没有这样的功能。不过有一些promising progress

    【讨论】:

    • 感谢您的深入回复。我期待这样的表格的主要原因是因为我遇到了这个视频:tinyurl.com/82twbsq 知道这个家伙在做什么,还是我错过了什么?
    【解决方案2】:

    虽然带有 Ruby in Steel 的 Visual Studio 不支持设计 Windows 窗体,但您至少可以尝试使用 SharpDevelop 来生成 Windows 窗体代码。 SharpDevelop 支持 creating Windows Forms projects in IronRuby 并且还有一个可以生成 IronRuby 代码的表单设计器。

    据我所知,SapphireSteel 对 IronRuby 的支持是 stopped,他们专注于标准 Ruby。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多