I really think this is a bug, but I'm going to file this as a feature request, just to add more weight to the issue...
The VI Server Application method Library.Get File LV Version claims to be able to tell you the version of a Library (or XControl, XNode, LVClass) on disk, without loading it into memory.
Here are the docs:
But, when you try to call this method on a Library saved in a version of LabVIEW newer than the version of LabVIEW in which the method is executing, you get the following error:
Error 1125 (LabVIEW: File version is later than the current LabVIEW version.)
Why an error? It had to read the version in order to generate the error. Why not just return the version?
Thanks in advance for your kudos 🙂