Version Number

D

Dino Buljubasic

Hi,

I am building an application that will update itself over ftp server
and would like to display version number of old and new version to the
user.

Anybody knows how can I do this. I know about AssemblyVersion number
in AssemblyInfo file but have never used it so far.

Any hints/help will be greatly appreciated.

Thank you
 
N

NeoNet

I am building an application that will update itself over ftp server
and would like to display version number of old and new version to the
user.

Anybody knows how can I do this. I know about AssemblyVersion number
in AssemblyInfo file but have never used it so far.

System.Reflection.AssemblyName an =
System.Reflection.Assembly.GetExecutingAssembly().GetName();

this.Text = "v " + an.Version.Major + "." + an.Version.Minor;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top