I have a version number in my AssemblyInfo.cs file like so:
[assembly: AssemblyInformationalVersion("0.0.0.2")]
Normally I can access this information using FileVersionInfo and I do have a reference to System.dll (where this class is normally defined) but the System.Diagnostics namespace does not seem to be available.
Here's the path that VS says is the System assembly I'm referencing:
C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\System.dll
In short: How can I display the version string (AssemblyInformationalVersion) of my application in my application?
Edit: Using
Assembly.GetExecutingAssembly().GetName().Version.ToString()
returns "0.0.0.0" since that attribute is not defined in my AssemblyInfo.cs file.