【发布时间】:2015-08-01 04:36:03
【问题描述】:
假设我们有 pubspec.yaml 之类的:
name: myApp
version: x.y.z
我可以在运行时的 main 函数中获得高于 x.y.z 的版本吗?
【问题讨论】:
假设我们有 pubspec.yaml 之类的:
name: myApp
version: x.y.z
我可以在运行时的 main 函数中获得高于 x.y.z 的版本吗?
【问题讨论】:
目前没有通用的方法。请参阅https://github.com/google/grinder.dart/blob/19a6d13866de8f4a3b295074a3487eaa77b7a2f8/lib/src/cli.dart#L17,了解它在 Grinder 包中是如何完成的。有计划改进这一点。例如看这个讨论https://groups.google.com/a/dartlang.org/forum/m/#!topic/core-dev/8WrVpjD6tt8
【讨论】: