[xbuild] Ignore missing imports when parsing solution file.
authorAnkit Jain <radical@corewars.org>
Wed, 4 Aug 2010 16:24:11 +0000 (21:54 +0530)
committerAnkit Jain <radical@corewars.org>
Wed, 4 Aug 2010 16:28:22 +0000 (21:58 +0530)
When loading projects specified in the solution file, to find
their dependencies, missing imports cause an exception to be
thrown and so the deps are not available in the project instance.

mcs/tools/xbuild/SolutionParser.cs

index 552b2f306306d9956730d9dc2539f0607e4d3102..65bdb80294e483d6e9d937f95ec359556356260f 100644 (file)
@@ -203,7 +203,7 @@ namespace Mono.XBuild.CommandLine {
 
                                Project currentProject = p.ParentEngine.CreateNewProject ();
                                try {
-                                       currentProject.Load (filename);
+                                       currentProject.Load (filename, ProjectLoadSettings.IgnoreMissingImports);
                                } catch (InvalidProjectFileException e) {
                                        RaiseWarning (0, e.Message);
                                        continue;