Checking skd path for is not enough, add check for mscorlib as well
authorMarek Safar <marek.safar@gmail.com>
Tue, 18 Jan 2011 17:07:47 +0000 (17:07 +0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 18 Jan 2011 17:08:33 +0000 (17:08 +0000)
mcs/mcs/ikvm.cs

index 4758a3ce07c925f09f7ba27655ebe4384538555d..9d5155b28e31dcbf152a9934c21eda2757c1142d 100644 (file)
@@ -200,7 +200,7 @@ namespace Mono.CSharp
 
                        foreach (var dir in sdk_directory[RootContext.SdkVersion]) {
                                sdk_path = Path.Combine (fx_path, dir);
-                               if (Directory.Exists (sdk_path))
+                               if (File.Exists (Path.Combine (sdk_path, "mscorlib.dll")))
                                        break;
 
                                sdk_path = null;