Created
March 30, 2016 12:05
-
-
Save bluebycode/f5af7d8e72b1d4234d0915ad7b1cbe67 to your computer and use it in GitHub Desktop.
Check version of dll file using mono CheckVersion.exe <filename.dll>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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