fork download
  1. Type type = Type.GetTypeFromProgID("VisualStudio.DTE.10.0", true);
  2. Object comObject = Activator.CreateInstance(type);
  3. DTE dte = (DTE)comObject;
  4. Solution sol = dte.Solution;
  5. sol.Open(args[0]);
  6. if (!sol.IsOpen)
  7. {
  8. Console.Error.WriteLine("could not open solution {0}", args[0]);
  9. return;
  10. }
  11.  
  12. foreach (Project proj in sol.Projects)
  13. {
  14. process_project(proj);
  15. }
  16.  
  17. sol.Close(true);
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,16): error CS1525: Unexpected symbol `Type'
prog.cs(5,31): warning CS0658: `value' is invalid attribute target. All attributes in this attribute section will be ignored
prog.cs(17,32): error CS8025: Parsing error
Compilation failed: 2 error(s), 1 warnings
stdout
Standard output is empty