October 2nd, 2010, 08:52 PM
[RESOLVED] Accessing version info of my own app
I am creating an About box for one of my apps that should reflect the version number of the app as specified in the AssemblyVersionAttribute in AssemblyInfo.cpp, preferably without requiring me to have to update the number in two distinct locations in parallel. The Application::ProductVersion propperty looked promising for that purpose, as I interpret the MSDN docs, but it seems to always return "220.127.116.11", regardless of what I set up in AssemblyInfo.cpp. Could there be anything typical that I might be doing wrong and/or any other way to access this information?
In case that matters: I have only tried this with the debug build so far.
BTW: What means "using the default values" for the build and revision numbers as it has been preset by the IDE by setting AssemblyVersionAttribute to "1.0.*"?
I also would like to access what I have set up for AssemblyCopyrightAttribute in AssemblyInfo.cpp, but I haven't seen any (possible) way to do that at all.
Last edited by Eri523; June 24th, 2011 at 04:28 PM.
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.