[RESOLVED] Accessing version info of my own app
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: [RESOLVED] Accessing version info of my own app

Threaded View

  1. #1
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,591

    [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 "1.0.0.0", 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.

    TIA
    Last edited by Eri523; June 24th, 2011 at 03: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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center