~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore/ReferenceManager.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
                        if (!posix && info.GenerateGettext && info.GettextClass == "Mono.Unix.Catalog") {
182
182
                                // Add a reference to Mono.Posix. Use the version for the selected project's runtime version.
183
183
                                string aname = project.AssemblyContext.FindInstalledAssembly ("Mono.Posix, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756", null, project.TargetFramework);
184
 
                                aname = project.AssemblyContext.GetAssemblyNameForVersion (aname, project.TargetFramework);
185
 
                                project.References.Add (new ProjectReference (ReferenceType.Package, aname));
186
 
                                changed = true;
 
184
                                if (aname != null) {
 
185
                                        aname = project.AssemblyContext.GetAssemblyNameForVersion (aname, project.TargetFramework);
 
186
                                        if (aname != null) {
 
187
                                                project.References.Add (new ProjectReference (ReferenceType.Package, aname));
 
188
                                                changed = true;
 
189
                                        }
 
190
                                }
187
191
                        }
188
192
                        updating = false;
189
193
                        return changed;