Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Project Version?

Status
Not open for further replies.

MrChopper

Programmer
Aug 11, 2004
20
US
I started a new C# Windows Project in .NET 2005. In my code, how can I retrieve the version information for the project?
 
Something like:
Code:
Assembly a = Assembly.GetAssembly();
AssemblyName an = a.GetName();
Version v = an.Version;
Console.WriteLine(v.Major.ToString() + v.Minor.ToString());

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top