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

Get assembly version and name using C#.NET

by Thamil   on Dec 20, 2011   Category: C#   |  Views: 1790    |  Points: 25   |  Gold 


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



Post Code  |  Code Snippet Home

User Responses


No response found, be the first to review this code snippet.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts