Skip to content

Instantly share code, notes, and snippets.

@bluebycode
Created March 30, 2016 12:05
Show Gist options
  • Save bluebycode/f5af7d8e72b1d4234d0915ad7b1cbe67 to your computer and use it in GitHub Desktop.
Save bluebycode/f5af7d8e72b1d4234d0915ad7b1cbe67 to your computer and use it in GitHub Desktop.
Check version of dll file using mono CheckVersion.exe <filename.dll>
using System;
using System.Reflection;
namespace Assemblies {
class MainClass
{
public static void Main (string[] args)
{
Console.WriteLine (args[0]);
Assembly assembly = Assembly.LoadFrom(args[0]);
Version ver = assembly.GetName().Version;
Console.WriteLine (ver.ToString());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment