static void Main(string [] args) { if (!File.Exists ("genproj.cs") || !File.Exists ("monowrap.cs")){ Console.WriteLine ("This command should be ran from mono/msvc/scripts"); Environment.Exit (1); } var sln_gen = new SlnGenerator (); XDocument doc = XDocument.Load ("order.xml"); foreach (XElement project in doc.Root.Elements ()){ string dir = project.Attribute ("dir").Value; string library = project.Attribute ("library").Value; // // Do only class libraries for now // if (!(dir.StartsWith ("class") || dir.StartsWith ("mcs"))) continue; // // Do not do 2.1, it is not working yet // Do not do basic, as there is no point (requires a system mcs to be installed). // if (library.Contains ("moonlight") || library.Contains ("-basic")) continue; var gen = new MsbuildGenerator (dir); try { sln_gen.Add (gen.Generate (project)); } catch (Exception e) { Console.WriteLine ("Error in {0}\n{1}", dir, e); } } sln_gen.Write ("mcs_full.sln"); }
static void Main(string [] args) { if (!File.Exists("genproj.cs")) { Console.WriteLine("This command should be ran from mono/msvc/scripts"); Environment.Exit(1); } var sln_gen = new SlnGenerator(); XDocument doc = XDocument.Load("order.xml"); foreach (XElement project in doc.Root.Elements()) { string dir = project.Attribute("dir").Value; string library = project.Attribute("library").Value; // // Do only class libraries for now // if (!(dir.StartsWith("class") || dir.StartsWith("mcs"))) { continue; } // // Do not do 2.1, it is not working yet // Do not do basic, as there is no point (requires a system mcs to be installed). // if (library.Contains("moonlight") || library.Contains("-basic") || library.EndsWith("bootstrap")) { continue; } var gen = new MsbuildGenerator(dir); try { //sln_gen.Add (gen.Generate (project)); gen.Generate(project); } catch (Exception e) { Console.WriteLine("Error in {0}\n{1}", dir, e); } } sln_gen.Write("mcs_full.sln"); }
static void WriteSolution(SlnGenerator sln_gen, string slnfilename) { Console.WriteLine(String.Format("Writing solution {1}, with {0} projects", sln_gen.Count, slnfilename)); sln_gen.Write(slnfilename); }
static void WriteSolution (SlnGenerator sln_gen, string slnfilename) { Console.WriteLine (String.Format ("Writing solution {1}, with {0} projects", sln_gen.Count, slnfilename)); sln_gen.Write (slnfilename); }