Re: Programatically getting my AssemblyVersion
- From: Mattias Sjögren <mattias.dont.want.spam@xxxxxxxx>
- Date: Tue, 21 Feb 2006 22:46:43 +0100
string appName = Assembly.GetAssembly(this.GetType()).Location;
AssemblyName assemblyName = AssemblyName.GetAssemblyName(appName);
return assemblyName.Version.ToString();
Or just
return this.GetType().Assembly.GetName().Version.ToString();
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.
- References:
- Programatically getting my AssemblyVersion
- From: herc
- Re: Programatically getting my AssemblyVersion
- From: herc
- Programatically getting my AssemblyVersion
- Prev by Date: Futzing w/ HTTP response/request model
- Next by Date: Re: Programatically getting my AssemblyVersion
- Previous by thread: Re: Programatically getting my AssemblyVersion
- Next by thread: Re: Programatically getting my AssemblyVersion
- Index(es):
Relevant Pages
|