1

I would like to display what version my App is in on the UI. It looks like I set that in Properties --> Application --> Assembler Information.

  • Is that correct?
  • Do I manually increment that upon releases?
  • How do I access that programmatically?

Thanks!

Refracted Paladin
  • 12,096
  • 33
  • 123
  • 233

3 Answers3

6

Yes, the assembly version is set that way. To display it in the UI, you can retrieve it with:

Assembly.GetExecutingAssembly().GetName().Version.ToString();
Tormod Fjeldskår
  • 5,952
  • 1
  • 29
  • 47
1

For an example of how to read more info, simply add the standard AboutBox to a (dummy) project, and look at the source. Some of those elements are more readily available as Application properties though.

H H
  • 263,252
  • 30
  • 330
  • 514
0

Or in System.Windows.Forms:

Application.ProductVersion
Ken H
  • 466
  • 3
  • 8