Page 1 of 1

How to get File Version of App from within the App... C#

Posted: Mon Feb 05, 2007 8:54 pm
by daedalus__
I'm trying to make a small about box for my application. I want to take the version number that is kept in the assemblyinfo.cs file, that way i can just update that number every important build and not have to change the about box.

i have no idea how to do this. reflection?

Posted: Tue Feb 06, 2007 12:49 am
by timvw

Posted: Tue Feb 06, 2007 12:38 pm
by daedalus__
This was sooooooo much easier than people made it out to be that I am lol'ing. I spent three hours just trying to do this.

code:

Code: Select all

System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.ToString();
You should have seen some of the crap people used to do this.[/syntax]