Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Dart 是否可以在运行时获取pubspec.yaml版本?_Dart_Dart Pub - Fatal编程技术网

Dart 是否可以在运行时获取pubspec.yaml版本?

Dart 是否可以在运行时获取pubspec.yaml版本?,dart,dart-pub,Dart,Dart Pub,假设我们有pubspec.yaml,比如: name: myApp version: x.y.z 我可以在运行时在main函数中获得高于x.y.z的版本吗?目前没有通用的方法。有关研磨机包中的操作方法,请参阅。sre计划对此进行改进。例如,请参见本讨论

假设我们有pubspec.yaml,比如:

name: myApp
version: x.y.z

我可以在运行时在main函数中获得高于x.y.z的版本吗?

目前没有通用的方法。有关研磨机包中的操作方法,请参阅。sre计划对此进行改进。例如,请参见本讨论