Thanks! This was what I needed - I couldn't figure out that GetName returned
something useful.
For the record: The two calls do NOT return the same thing. To clarify it:
In my solution, I have TWO projects. One containing the EXE itself (let's
say the version of the exe is 2.3 for instance) and another project which is
a DLL that is referenced by the EXE project (let's say the version of the
dll is 5.6 for instance).
If you have a method in the dll that need to check the DLL version, you will
get the right result (5.6) with
System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()
But
My.Application.Info.Version.ToString
will return 2.3
However, thanks for the help!
Johnny J.
"kimiraikkonen" <
[email protected]> skrev i meddelandet
However you may need this returns the same version:
System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()