【问题标题】:How to run a Dart Console Application?如何运行 Dart 控制台应用程序?
【发布时间】:2015-05-06 13:49:59
【问题描述】:

我只是按照https://www.dartlang.org/docs/dart-up-and-running/ch01.html 运行一个 Dart 控制台应用程序,但结果是“找不到 HTML 文件”。

【问题讨论】:

    标签: dart


    【解决方案1】:

    如果您想知道如何从 DartEditor 启动它,只需右键单击 Files 视图中的文件并选择 Run。如果你点击工具栏中的Run按钮,可能之前启动的文件已经启动(1/2年没用过DartEditor了)

    如果你想从命令行启动它,只需运行dart bin/main.dart

    【讨论】:

    • 你能告诉我 DartEditor 的版本我可以使用什么
    • 任何版本都应该以这种方式工作。如果你从 www.dartlang.org 网站下载 Dart 或者使用 homebrew 或 apt-get 安装它应该没问题。
    猜你喜欢
    • 2022-01-23
    • 2013-02-11
    • 1970-01-01
    • 2019-01-30
    • 2011-01-22
    • 2011-02-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多