views:

90

answers:

2

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!

+1  A: 

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
A: 

Or in System.Windows.Forms:

Application.ProductVersion
Ken H