~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/DirectoryAssemblyContext.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-09-10 16:54:48 UTC
  • mfrom: (19.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100910165448-0rybfk25zd4o9431
Tags: 2.4+dfsg-2
* debian/patches/inject_Mono.Debugger.Soft_source.patch,
  debian/patches/use_system_Mono.Debugger.Soft.patch,
  debian/control:
  + Build against system Soft Debugger, since we now have a new
    enough Mono to match MonoDevelop's required API

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
                                                pendingUpdate = true;
50
50
                                                Runtime.SystemAssemblyService.CurrentRuntime.Initialized += OnUpdatePackages;
51
51
                                        }
 
52
                                        NotifyChanged ();
52
53
                                }
53
54
                        }
54
55
                }
63
64
                                packages.Clear ();
64
65
                                
65
66
                                foreach (string dir in directories) {
66
 
                                        foreach (string file in Directory.GetFiles (dir)) {
67
 
                                                string ext = Path.GetExtension (file);
68
 
                                                if (ext == ".dll")
69
 
                                                        RegisterAssembly (file);
70
 
                                                else if (ext == ".pc")
71
 
                                                        RegisterPcFile (file);
 
67
                                        if (Directory.Exists (dir)) {
 
68
                                                try {
 
69
                                                        foreach (string file in Directory.GetFiles (dir)) {
 
70
                                                                string ext = Path.GetExtension (file);
 
71
                                                                if (ext == ".dll")
 
72
                                                                        RegisterAssembly (file);
 
73
                                                                else if (ext == ".pc")
 
74
                                                                        RegisterPcFile (file);
 
75
                                                        }
 
76
                                                } catch (Exception ex) {
 
77
                                                        LoggingService.LogError ("Error while updating assemblies from directory: " + dir, ex);
 
78
                                                }
 
79
                                        } else {
 
80
                                                LoggingService.LogWarning ("User defined assembly forlder doesn't exist: " + dir);
72
81
                                        }
73
82
                                }
74
83
                                pendingUpdate = false;