In my server app, I can get File version info this way:
FileVersionInfo currentVersion = FileVersionInfo.GetVersionInfo(filePath);
...but that trick doesn't seem to work in the Compact Framework (I get, "The type or namespace name 'FileVersionInfo' could not be found (are you missing a using directive or an assembly reference?)"
It seems that the "using" I need in my server/Web API (.NET 4.5.1) app is System.Diagnostics, but adding that to my CF app leaves the using statement greyed out (and doesn't afford the resolution of the err msg shown above).
Do I need to add a specific assembly reference, coupled with a particular "using" to get this to work?
Or do I need to use custom CF code for this, such as that found here?
UPDATE
At the article linked to above, it says, "Getting file version info in the Compact Framework is pretty simple – provided the file you want info on is a managed assembly."
So, okay: what is the simple way? I'll try that first, before I go leaping through fiery hoops. And I know this question will seem naive to many, but: Is a custom .exe we have created (an "in-house" app) "native" or "managed"? I tried googling the difference between the two, but didn't find a definition...