protected override void OnReadSolution(ProgressMonitor monitor, MonoDevelop.Projects.MSBuild.SlnFile file)
        {
            base.OnReadSolution(monitor, file);

            //Resolve project references
            try {
                MakefileData.ResolveProjectReferences(Solution.RootFolder, monitor);
            } catch (Exception e) {
                LoggingService.LogError(GettextCatalog.GetString(
                                            "Error resolving Makefile based project references for solution {0}", Solution.Name), e);
                monitor.ReportError(GettextCatalog.GetString(
                                        "Error resolving Makefile based project references for solution {0}", Solution.Name), e);
            }

            // All done, dispose myself
            Dispose();
        }
Beispiel #2
0
		public override WorkspaceItem LoadWorkspaceItem (IProgressMonitor monitor, string fileName)
		{
			WorkspaceItem item = base.LoadWorkspaceItem (monitor, fileName);
			
			Solution sol = item as Solution;
			if (sol != null) {
				//Resolve project references
				try {
					MakefileData.ResolveProjectReferences (sol.RootFolder, monitor);
				} catch (Exception e) {
					LoggingService.LogError (GettextCatalog.GetString (
						"Error resolving Makefile based project references for solution {0}", sol.Name), e);
					monitor.ReportError (GettextCatalog.GetString (
						"Error resolving Makefile based project references for solution {0}", sol.Name), e);
				}
			}
			
			return item;
		}