Browse Source

Fix MSBuildBasedProject.FindExistingPropertyInAllConfigurations()

pull/39/merge
Daniel Grunwald 13 years ago
parent
commit
7a58188249
  1. 4
      src/Main/Base/Project/Src/Project/MSBuildBasedProject.cs

4
src/Main/Base/Project/Src/Project/MSBuildBasedProject.cs

@ -602,12 +602,12 @@ namespace ICSharpCode.SharpDevelop.Project
PropertyStorageLocations FindExistingPropertyInAllConfigurations(string propertyName) PropertyStorageLocations FindExistingPropertyInAllConfigurations(string propertyName)
{ {
foreach (var g in projectFile.PropertyGroups) { foreach (var g in projectFile.PropertyGroups) {
if (g.Properties.Any(p => MSBuildInternals.PropertyNameComparer.Equals(p.Name == propertyName))) { if (g.Properties.Any(p => MSBuildInternals.PropertyNameComparer.Equals(p.Name, propertyName))) {
return MSBuildInternals.GetLocationFromCondition(g.Condition); return MSBuildInternals.GetLocationFromCondition(g.Condition);
} }
} }
foreach (var g in userProjectFile.PropertyGroups) { foreach (var g in userProjectFile.PropertyGroups) {
if (g.Properties.Any(p => MSBuildInternals.PropertyNameComparer.Equals(p.Name == propertyName))) { if (g.Properties.Any(p => MSBuildInternals.PropertyNameComparer.Equals(p.Name, propertyName))) {
return MSBuildInternals.GetLocationFromCondition(g.Condition) return MSBuildInternals.GetLocationFromCondition(g.Condition)
| PropertyStorageLocations.UserFile; | PropertyStorageLocations.UserFile;
} }

Loading…
Cancel
Save