public static int Main (string [] args) { if (args.Length == 0) return 1; AbiMode = false; AssemblyCollection acoll = new AssemblyCollection (); foreach (string arg in args) { if (arg == "--abi") AbiMode = true; else acoll.Add (arg); } XmlDocument doc = new XmlDocument (); acoll.Document = doc; acoll.DoOutput (); var writer = new WellFormedXmlWriter (new XmlTextWriter (Console.Out) { Formatting = Formatting.Indented }); XmlNode decl = doc.CreateXmlDeclaration ("1.0", "utf-8", null); doc.InsertBefore (decl, doc.DocumentElement); doc.WriteTo (writer); return 0; }
public static int Main(string [] args) { if (args.Length == 0) { return(1); } AssemblyCollection acoll = new AssemblyCollection(); foreach (string fullName in args) { acoll.Add(fullName); } XmlDocument doc = new XmlDocument(); acoll.Document = doc; acoll.DoOutput(); var writer = new WellFormedXmlWriter(new XmlTextWriter(Console.Out) { Formatting = Formatting.Indented }); XmlNode decl = doc.CreateXmlDeclaration("1.0", "utf-8", null); doc.InsertBefore(decl, doc.DocumentElement); doc.WriteTo(writer); return(0); }
public static int Main (string [] args) { if (args.Length == 0) return 1; AbiMode = false; AssemblyCollection acoll = new AssemblyCollection (); string windir = Environment.GetFolderPath(Environment.SpecialFolder.Windows); string pf = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); TypeHelper.Resolver.AddSearchDirectory (Path.Combine (windir, @"assembly\GAC\MSDATASRC\7.0.3300.0__b03f5f7f11d50a3a")); foreach (string arg in args) { if (arg == "--abi") { AbiMode = true; } else { acoll.Add (arg); if (arg.Contains ("v3.0")) { TypeHelper.Resolver.AddSearchDirectory (Path.Combine (windir, @"Microsoft.NET\Framework\v2.0.50727")); } else if (arg.Contains ("v3.5")) { TypeHelper.Resolver.AddSearchDirectory (Path.Combine (windir, @"Microsoft.NET\Framework\v2.0.50727")); TypeHelper.Resolver.AddSearchDirectory (Path.Combine (windir, @"Microsoft.NET\Framework\v3.0\Windows Communication Foundation")); } else if (arg.Contains ("v4.0")) { if (arg.Contains ("Silverlight")) { TypeHelper.Resolver.AddSearchDirectory (Path.Combine (pf, @"Microsoft Silverlight\4.0.51204.0")); } else { TypeHelper.Resolver.AddSearchDirectory (Path.Combine (windir, @"Microsoft.NET\Framework\v4.0.30319")); TypeHelper.Resolver.AddSearchDirectory (Path.Combine (windir, @"Microsoft.NET\Framework\v4.0.30319\WPF")); } } else { TypeHelper.Resolver.AddSearchDirectory (Path.GetDirectoryName (arg)); } } } XmlDocument doc = new XmlDocument (); acoll.Document = doc; acoll.DoOutput (); var writer = new WellFormedXmlWriter (new XmlTextWriter (Console.Out) { Formatting = Formatting.Indented }); XmlNode decl = doc.CreateXmlDeclaration ("1.0", "utf-8", null); doc.InsertBefore (decl, doc.DocumentElement); doc.WriteTo (writer); return 0; }
public static int Main(string [] args) { if (args.Length == 0) { return(1); } AbiMode = false; AssemblyCollection acoll = new AssemblyCollection(); string windir = Environment.GetFolderPath(Environment.SpecialFolder.Windows); string pf = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); TypeHelper.Resolver.AddSearchDirectory(Path.Combine(windir, @"assembly\GAC\MSDATASRC\7.0.3300.0__b03f5f7f11d50a3a")); foreach (string arg in args) { if (arg == "--abi") { AbiMode = true; } else { acoll.Add(arg); if (arg.Contains("v3.0")) { TypeHelper.Resolver.AddSearchDirectory(Path.Combine(windir, @"Microsoft.NET\Framework\v2.0.50727")); } else if (arg.Contains("v3.5")) { TypeHelper.Resolver.AddSearchDirectory(Path.Combine(windir, @"Microsoft.NET\Framework\v2.0.50727")); TypeHelper.Resolver.AddSearchDirectory(Path.Combine(windir, @"Microsoft.NET\Framework\v3.0\Windows Communication Foundation")); } else if (arg.Contains("v4.0")) { if (arg.Contains("Silverlight")) { TypeHelper.Resolver.AddSearchDirectory(Path.Combine(pf, @"Microsoft Silverlight\4.0.51204.0")); } else { TypeHelper.Resolver.AddSearchDirectory(Path.Combine(windir, @"Microsoft.NET\Framework\v4.0.30319")); TypeHelper.Resolver.AddSearchDirectory(Path.Combine(windir, @"Microsoft.NET\Framework\v4.0.30319\WPF")); } } } } XmlDocument doc = new XmlDocument(); acoll.Document = doc; acoll.DoOutput(); var writer = new WellFormedXmlWriter(new XmlTextWriter(Console.Out) { Formatting = Formatting.Indented }); XmlNode decl = doc.CreateXmlDeclaration("1.0", "utf-8", null); doc.InsertBefore(decl, doc.DocumentElement); doc.WriteTo(writer); return(0); }