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?
How to get File Version of App from within the App... C#
Moderator: General Moderators
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
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:
You should have seen some of the crap people used to do this.[/syntax]
code:
Code: Select all
System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.ToString();