Geeks With Blogs
James Norman
One of those things I always have to Google, even though I know it's in System.Reflection.   

Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
foreach(Assembly a in assemblies)
{
   String assemblyFileVersion = a.GetCustomAttributes(typeof(AssemblyFileVersionAttribute), false).Cast<AssemblyFileVersionAttribute>().Single().Version;
   String assemblyVersion = a.GetCustomAttributes(typeof(AssemblyVersionAttribute), false).Cast<AssemblyVersionAttribute>().Single().Version;
}
Posted on Wednesday, May 27, 2015 6:37 PM | Back to top


Comments on this post: Getting an Assembly Version/File Version

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © James Norman | Powered by: GeeksWithBlogs.net