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

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/MonoRuntimeInfo.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:
151
151
                        MonoRuntimeInfo rt = new MonoRuntimeInfo ();
152
152
                        
153
153
                        string ver = (string) t.InvokeMember ("GetDisplayName", BindingFlags.InvokeMethod | BindingFlags.Static | BindingFlags.NonPublic, null, null, null);
 
154
                        
 
155
                        //not sure which version this old scheme applies to
154
156
                        int i = ver.IndexOf ("/branches/mono-");
155
157
                        if (i != -1) {
156
158
                                i += 15;
163
165
                        
164
166
                        if (rt.monoVersion == "Unknown") {
165
167
                                i = ver.IndexOf (' ');
166
 
                                rt.monoVersion = ver.Substring (i+1);
 
168
                                //this schme applies to mono 2.6.3+
 
169
                                if (ver.Length > i && ver[i+1] == '(')
 
170
                                        rt.monoVersion = ver.Substring (0, i);
 
171
                                //not sure how old this scheme is
 
172
                                else
 
173
                                        rt.monoVersion = ver.Substring (i+1);
167
174
                        }
168
175
 
169
176
                        //Pull up assemblies from the installed mono system.