How to check the version of an assembly (dll)?

How to check the version of an assembly (dll)?

There is a couple of ways to do it:

  • If you reference the dll in Visual Studio right click it (in ProjectName/References folder) and select "Properties" you have "Version" and "Runtime Version" there.

  • In File Explorer when you right click the dll file and select properties there is a "File Version" and "Product Version" there.

  • Alternatively, investigate it in code:

    Assembly assembly = Assembly.LoadFrom("TestAssembly.dll");
    Version ver = assembly.GetName().Version;
    

 

How can i see the assembly version of a .NET assembly in Windows Vista and newer (WIndows 7, 2008)?

You can always write a Shell Extension to add a property page to File Properties like it has been done here http://sbytestream.pythonanywhere.com/software/asmprops

 

posted @ 2020-11-19 14:47  ChuckLu  阅读(127)  评论(0编辑  收藏  举报