Home > Code > C# > Get assembly version and name using C#.NET

Get assembly version and name using C#.NET

by Thamilselvanj   on Dec 20, 2011   Category: C#   |  Views: 110    |  Points: 25   |  Silver 



Belwo C# code will help you to get assembly name and version from the AssemblyInfo.cs file

private void GetAssemblyVerName()
{
Response.Write("Assembly version :" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()+"<br>");
Response.Write("Assembly Name :" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Name.ToString());
}


Output
---------
Assembly version :1.0.0.0
Assembly Name :WebApplication1

Like this code? Bookmark and Share:

  User Responses | Post Code
 No Response found!
  Recent Posts
* Setting focus to textbox control using JavaScript (308) by Narain_Siddharth on Nov 13 2010 11:25AM
* Sending Mails with Attachements using Asp.Net (362) by Narain_Siddharth on Nov 13 2010 11:48AM
* Disable the Submit button when insert or update a record using JavaScript (278) by Narain_Siddharth on Nov 13 2010 12:31PM
* String comparisons using C#.NET string.compareTo (289) by Thamilselvanj on Nov 14 2010 11:16AM
* String.Split using C# (287) by Thamilselvanj on Nov 14 2010 11:23AM
  Submit feedback about this code snippet
Please sign in to post feedback