2 // mono-find-requires.cs - Prints out referenced assembles
4 // Author: Duncan Mak (duncan@ximian.com)
6 // 2004 Copyright Novell Inc.
10 using System.Reflection;
15 static void Main (string [] args)
17 if (args.Length == 0) {
18 string s = Console.ReadLine ();
22 s = Console.ReadLine ();
26 foreach (string s in args)
31 static void PrintRequires (string s)
34 Assembly a = Assembly.LoadFrom (s);
36 foreach (AssemblyName an in a.GetReferencedAssemblies ())
37 Console.WriteLine ("mono({0}) = {1}", an.Name, an.Version);