how to know the Assembly/dll information of .net project .

 public static class AssemblyInfo

public static string BuildName;
public static string BuildVersion;
public static string BuildDate;
static GlobalInfo()
var assembly = Assembly.GetExecutingAssembly();
//buildName = assembly.GetName().ToString();
BuildName = “smw-service”;//Hard coded intentionallly
BuildVersion = assembly.GetName().Version.ToString();
var path = Assembly.GetCallingAssembly().Location;
if (!string.IsNullOrWhiteSpace(path))
BuildDate = File.GetLastWriteTime(path).ToString(“MMM dd, yyyy”);



One thought on “how to know the Assembly/dll information of .net project .

  1. I have to express my thanks to you just for bailing me out of this type of condition. Because of browsing through the world wide web and getting advice that were not powerful, I was thinking my life was over. Living minus the strategies to the issues you’ve sorted out all through your short post is a serious case, and the ones which may have in a wrong way damaged my entire career if I had not discovered the website. Your actual expertise and kindness in maneuvering all the details was very useful. I don’t know what I would have done if I had not encountered such a solution like this. It’s possible to now relish my future. Thank you so much for your impressive and sensible guide. I will not be reluctant to recommend your web blog to anybody who requires support about this topic.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.