Guest User

Untitled

a guest
Sep 21st, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. using System;
  2. using System.IO;
  3. using System.Reflection;
  4.  
  5. class Program
  6. {
  7.     public static void Main(string[] args)
  8.     {
  9.         foreach (string arg in args)
  10.         {
  11.             try
  12.             {
  13.                 string path = Path.GetFullPath(arg);
  14.                 var assembly = Assembly.LoadFile(path);
  15.                 Console.Out.WriteLine(assembly.GetName().FullName);
  16.             }
  17.             catch (Exception exception)
  18.             {
  19.                 Console.Out.WriteLine(string.Format("{0}: {1}", arg, exception.Message));
  20.             }
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment