if (FromXml) {
XmlElement xe;
- xe = propertyGroup.OwnerDocument.CreateElement (propertyName);
+ xe = propertyGroup.OwnerDocument.CreateElement (propertyName, Project.XmlNamespace);
propertyGroup.AppendChild (xe);
if (treatPropertyValueAsLiteral)
prop = new BuildProperty (parentProject, xe);
AddProperty (prop);
+ parentProject.EvaluatedProperties.AddProperty (prop);
return prop;
} else
throw new InvalidOperationException ("This method is only valid for persisted <System.Object[]> elements.");
public void Clear ()
{
- if (FromXml)
+ if (FromXml) {
+ propertyGroup.RemoveAll ();
properties = new List <BuildProperty> ();
- else
+ } else
propertiesByName = new Dictionary <string, BuildProperty> ();
}
+2007-01-10 Marek Sieradzki <marek.sieradzki@gmail.com>
+
+ * BuildItemGroup.cs (Clear): Remove from XML.
+
+ * BuildPropertyGroup.cs (AddNewProperty): Use right namespace and add
+ to Project.EvaluatedProperties.
+ (Clear): Remove from XML.
+
2007-01-09 Marek Sieradzki <marek.sieradzki@gmail.com>
* Project.cs (InitializeProperties): Added $(MSBuildProjectDirectory)