From a424d337443c74507b1b95eb238ae396bca0ce30 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sat, 18 Nov 2006 19:19:39 +0000 Subject: [PATCH] Fixed MSBuild condition evaluation. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2053 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- src/Main/Base/Project/Src/Project/MSBuildInternals.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main/Base/Project/Src/Project/MSBuildInternals.cs b/src/Main/Base/Project/Src/Project/MSBuildInternals.cs index 37d633f2aa..0c1fca6ca6 100644 --- a/src/Main/Base/Project/Src/Project/MSBuildInternals.cs +++ b/src/Main/Base/Project/Src/Project/MSBuildInternals.cs @@ -196,8 +196,8 @@ namespace ICSharpCode.SharpDevelop.Project { const string propertyName = "MSBuildInternalsEvaluateConditionDummyPropertyName"; MSBuild.BuildPropertyGroup pGroup = project.AddNewPropertyGroup(true); - pGroup.Condition = condition; - pGroup.AddNewProperty(propertyName, "ConditionTrue"); + pGroup.AddNewProperty(propertyName, "ConditionFalse"); + pGroup.AddNewProperty(propertyName, "ConditionTrue").Condition = condition; bool result = project.GetEvaluatedProperty(propertyName) == "ConditionTrue"; project.RemovePropertyGroup(pGroup); return result;