How to know what openfl and lime version from export file?


Hi, I have lost track with openfl and lime version of my old project.

Can we know the openfl, lime and other library version from the export result? I have flash and html5 export result.

Thanks for the help.


Perhaps we could go by date. Do you know how old the project is, or when you may have last updated?


Yes, it is what I think of for last solution. So there is no way we can know the version from export?


There a defines with the library versions inside the debug.hxml / release.hxml files, in case you don’t just have the bin folder, but also the haxe folder that’s generated next to it:

-main ApplicationMain 
-cp C:/HaxeToolkit/haxe/lib/flixel/git
-D flixel=4.2.1
-cp C:/HaxeToolkit/haxe/lib/openfl/3,6,1
-D openfl=3.6.1
-cp C:/HaxeToolkit/haxe/lib/lime/2,9,1
-D lime=2.9.1


If you only have the generated JavaScript files, Capabilities.version returns the OpenFL version in the string, however dead-code-elimination may likely remove that field if you were not referencing it :slight_smile:

Otherwise, there may be some things we can use to guess, if you have a ballpark idea of what version it might be


Ah yes, you’re right. Thank you for the information.