diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2014-04-02 18:18:49 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2014-04-02 18:18:49 +0400 |
commit | a4437850c2d39d2efe4e84702a5add089797ea22 (patch) | |
tree | c6812a94b58a861ee1899b3b7cbdfe930b885f86 /main/src/core/MonoDevelop.Core | |
parent | e1aedcc353cea24043bb402f2de9950c8f271e21 (diff) |
Solution configuration fixup
Don't create build configurations for projects that don't support building.
Diffstat (limited to 'main/src/core/MonoDevelop.Core')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Solution.cs | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Solution.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Solution.cs index b92abc3651..09f023d53c 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Solution.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Solution.cs @@ -661,20 +661,22 @@ namespace MonoDevelop.Projects SolutionEntityItem eitem = item as SolutionEntityItem; if (eitem != null) { eitem.NeedsReload = false; - if (replacedItem == null) { - // Register the new entry in every solution configuration - foreach (SolutionConfiguration conf in Configurations) - conf.AddItem (eitem); - } else { - // Reuse the configuration information of the replaced item - foreach (SolutionConfiguration conf in Configurations) - conf.ReplaceItem ((SolutionEntityItem)replacedItem, eitem); - if (StartupItem == replacedItem) - StartupItem = eitem; - else { - int i = MultiStartupItems.IndexOf ((SolutionEntityItem)replacedItem); - if (i != -1) - MultiStartupItems [i] = eitem; + if (eitem.SupportsBuild ()) { + if (replacedItem == null) { + // Register the new entry in every solution configuration + foreach (SolutionConfiguration conf in Configurations) + conf.AddItem (eitem); + } else { + // Reuse the configuration information of the replaced item + foreach (SolutionConfiguration conf in Configurations) + conf.ReplaceItem ((SolutionEntityItem)replacedItem, eitem); + if (StartupItem == replacedItem) + StartupItem = eitem; + else { + int i = MultiStartupItems.IndexOf ((SolutionEntityItem)replacedItem); + if (i != -1) + MultiStartupItems [i] = eitem; + } } } } |