2005-09-21 John Luke <john.luke@gmail.com>
[mono.git] / mcs / tools / monop / monop.cs
index 8840975980f617b255ed8e93431180196c651720..0fca784ea8d434937ba7bc333f0611751b46aefb 100644 (file)
@@ -121,7 +121,13 @@ class MonoP {
                p.StartInfo.RedirectStandardOutput = true;
                p.StartInfo.FileName = "gacutil";
                p.StartInfo.Arguments = "-l";
-               p.Start ();
+               try {
+                       p.Start ();
+               }
+               catch {
+                       Console.WriteLine ("WARNING: gacutil could not be found.");
+                       return new string[0];
+               }
 
                string s;
                ArrayList names = new ArrayList ();