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

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItemConfiguration.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:
26
26
//
27
27
 
28
28
using System;
 
29
using System.Linq;
29
30
using System.Xml;
30
31
using MonoDevelop.Projects;
31
32
using MonoDevelop.Core.Serialization;
50
51
                        get { return parentItem; }
51
52
                }
52
53
                
 
54
                public virtual SolutionItemConfiguration FindBestMatch (SolutionItemConfigurationCollection configurations)
 
55
                {
 
56
                        var configs = configurations.Cast<SolutionItemConfiguration> ();
 
57
                        return configs.FirstOrDefault (c => Name == c.Name && Platform == c.Platform)
 
58
                                ?? configs.FirstOrDefault (c => Name == c.Name && (c.Platform == "" || c.Platform == "Any CPU"));
 
59
                }
 
60
 
53
61
                internal void SetParentItem (SolutionEntityItem item)
54
62
                {
55
63
                        parentItem = item;