2 // Project.cs: Project class
5 // Marek Sieradzki (marek.sieradzki@gmail.com)
7 // (C) 2005 Marek Sieradzki
9 // Permission is hereby granted, free of charge, to any person obtaining
10 // a copy of this software and associated documentation files (the
11 // "Software"), to deal in the Software without restriction, including
12 // without limitation the rights to use, copy, modify, merge, publish,
13 // distribute, sublicense, and/or sell copies of the Software, and to
14 // permit persons to whom the Software is furnished to do so, subject to
15 // the following conditions:
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 using System.Collections;
32 using System.Collections.Generic;
33 using System.Collections.Specialized;
37 using System.Xml.Schema;
38 using Microsoft.Build.Framework;
39 using Mono.XBuild.Framework;
41 namespace Microsoft.Build.BuildEngine {
42 public class Project {
45 Dictionary <string, List <string>> conditionedProperties;
46 string[] defaultTargets;
48 BuildItemGroup evaluatedItems;
49 BuildItemGroup evaluatedItemsIgnoringCondition;
50 Dictionary <string, BuildItemGroup> evaluatedItemsByName;
51 Dictionary <string, BuildItemGroup> evaluatedItemsByNameIgnoringCondition;
52 BuildPropertyGroup evaluatedProperties;
53 string firstTargetName;
55 BuildPropertyGroup globalProperties;
56 GroupingCollection groupingCollection;
59 BuildItemGroupCollection itemGroups;
60 ImportCollection imports;
61 string initialTargets;
62 Dictionary <string, BuildItemGroup> last_item_group_containing;
63 bool needToReevaluate;
65 BuildPropertyGroupCollection propertyGroups;
67 TaskDatabase taskDatabase;
68 TargetCollection targets;
69 DateTime timeOfLastDirty;
70 UsingTaskCollection usingTasks;
71 XmlDocument xmlDocument;
74 static XmlNamespaceManager manager;
75 static string ns = "http://schemas.microsoft.com/developer/msbuild/2003";
78 : this (Engine.GlobalEngine)
82 public Project (Engine engine)
84 parentEngine = engine;
86 buildEnabled = ParentEngine.BuildEnabled;
87 xmlDocument = new XmlDocument ();
88 xmlDocument.PreserveWhitespace = false;
89 xmlDocument.AppendChild (xmlDocument.CreateElement ("Project", XmlNamespace));
90 xmlDocument.DocumentElement.SetAttribute ("xmlns", ns);
92 fullFileName = String.Empty;
94 globalProperties = new BuildPropertyGroup (null, this, null, false);
95 foreach (BuildProperty bp in parentEngine.GlobalProperties)
96 GlobalProperties.AddProperty (bp.Clone (true));
101 [MonoTODO ("Not tested")]
102 public void AddNewImport (string importLocation,
103 string importCondition)
105 if (importLocation == null)
106 throw new ArgumentNullException ("importLocation");
108 XmlElement importElement = xmlDocument.CreateElement ("Import", XmlNamespace);
109 xmlDocument.DocumentElement.AppendChild (importElement);
110 importElement.SetAttribute ("Project", importLocation);
111 if (!String.IsNullOrEmpty (importCondition))
112 importElement.SetAttribute ("Condition", importCondition);
114 Import import = new Import (importElement, this, null);
115 imports.Add (import);
116 MarkProjectAsDirty ();
120 public BuildItem AddNewItem (string itemName,
123 return AddNewItem (itemName, itemInclude, false);
126 [MonoTODO ("Adds item not in the same place as MS")]
127 public BuildItem AddNewItem (string itemName,
129 bool treatItemIncludeAsLiteral)
133 if (itemGroups.Count == 0)
134 big = AddNewItemGroup ();
136 if (last_item_group_containing.ContainsKey (itemName)) {
137 big = last_item_group_containing [itemName];
140 BuildItemGroup [] groups = new BuildItemGroup [itemGroups.Count];
141 itemGroups.CopyTo (groups, 0);
146 BuildItem item = big.AddNewItem (itemName, itemInclude, treatItemIncludeAsLiteral);
148 MarkProjectAsDirty ();
154 [MonoTODO ("Not tested")]
155 public BuildItemGroup AddNewItemGroup ()
157 XmlElement element = xmlDocument.CreateElement ("ItemGroup", XmlNamespace);
158 xmlDocument.DocumentElement.AppendChild (element);
160 BuildItemGroup big = new BuildItemGroup (element, this, null, false);
161 itemGroups.Add (big);
162 MarkProjectAsDirty ();
168 [MonoTODO ("Ignores insertAtEndOfProject")]
169 public BuildPropertyGroup AddNewPropertyGroup (bool insertAtEndOfProject)
171 XmlElement element = xmlDocument.CreateElement ("PropertyGroup", XmlNamespace);
172 xmlDocument.DocumentElement.AppendChild (element);
174 BuildPropertyGroup bpg = new BuildPropertyGroup (element, this, null, false);
175 propertyGroups.Add (bpg);
176 MarkProjectAsDirty ();
182 [MonoTODO ("Not tested, isn't added to TaskDatabase (no reevaluation)")]
183 public void AddNewUsingTaskFromAssemblyFile (string taskName,
186 if (taskName == null)
187 throw new ArgumentNullException ("taskName");
188 if (assemblyFile == null)
189 throw new ArgumentNullException ("assemblyFile");
191 XmlElement element = xmlDocument.CreateElement ("UsingTask", XmlNamespace);
192 xmlDocument.DocumentElement.AppendChild (element);
193 element.SetAttribute ("TaskName", taskName);
194 element.SetAttribute ("AssemblyFile", assemblyFile);
196 UsingTask ut = new UsingTask (element, this, null);
198 MarkProjectAsDirty ();
201 [MonoTODO ("Not tested, isn't added to TaskDatabase (no reevaluation)")]
202 public void AddNewUsingTaskFromAssemblyName (string taskName,
205 if (taskName == null)
206 throw new ArgumentNullException ("taskName");
207 if (assemblyName == null)
208 throw new ArgumentNullException ("assemblyName");
210 XmlElement element = xmlDocument.CreateElement ("UsingTask", XmlNamespace);
211 xmlDocument.DocumentElement.AppendChild (element);
212 element.SetAttribute ("TaskName", taskName);
213 element.SetAttribute ("AssemblyName", assemblyName);
215 UsingTask ut = new UsingTask (element, this, null);
217 MarkProjectAsDirty ();
220 [MonoTODO ("Not tested")]
223 return Build (new string [0]);
226 [MonoTODO ("Not tested")]
227 public bool Build (string targetName)
229 return Build (new string [1] { targetName });
232 [MonoTODO ("Not tested")]
233 public bool Build (string [] targetNames)
235 return Build (targetNames, null);
238 [MonoTODO ("Not tested")]
239 public bool Build (string [] targetNames,
240 IDictionary targetOutputs)
242 return Build (targetNames, targetOutputs, BuildSettings.None);
245 [MonoTODO ("Not tested")]
246 public bool Build (string [] targetNames,
247 IDictionary targetOutputs,
248 BuildSettings buildFlags)
252 ParentEngine.StartBuild ();
255 if (targetNames.Length == 0) {
256 if (defaultTargets != null && defaultTargets.Length != 0)
257 targetNames = defaultTargets;
258 else if (firstTargetName != null)
259 targetNames = new string [1] { firstTargetName};
264 foreach (string target in targetNames) {
265 if (!targets.Exists (target))
266 // FIXME: test if it's logged
269 if (!targets [target].Build ())
272 if (targetOutputs != null)
273 targetOutputs.Add (target, targets [target].Outputs);
280 public string [] GetConditionedPropertyValues (string propertyName)
282 if (conditionedProperties.ContainsKey (propertyName))
283 return conditionedProperties [propertyName].ToArray ();
285 return new string [0];
288 public BuildItemGroup GetEvaluatedItemsByName (string itemName)
290 if (needToReevaluate) {
291 needToReevaluate = false;
295 if (evaluatedItemsByName.ContainsKey (itemName))
296 return evaluatedItemsByName [itemName];
298 return new BuildItemGroup ();
301 public BuildItemGroup GetEvaluatedItemsByNameIgnoringCondition (string itemName)
303 if (needToReevaluate) {
304 needToReevaluate = false;
308 if (evaluatedItemsByNameIgnoringCondition.ContainsKey (itemName))
309 return evaluatedItemsByNameIgnoringCondition [itemName];
311 return new BuildItemGroup ();
314 public string GetEvaluatedProperty (string propertyName)
316 if (needToReevaluate) {
317 needToReevaluate = false;
321 if (propertyName == null)
322 throw new ArgumentNullException ("propertyName");
324 BuildProperty bp = evaluatedProperties [propertyName];
326 return bp == null ? null : (string) bp;
329 [MonoTODO ("We should remember that node and not use XPath to get it")]
330 public string GetProjectExtensions (string id)
332 if (id == null || id == String.Empty)
335 XmlNode node = xmlDocument.SelectSingleNode (String.Format ("/tns:Project/tns:ProjectExtensions/tns:{0}", id), XmlNamespaceManager);
340 return node.InnerXml;
344 public void Load (string projectFileName)
346 this.fullFileName = Path.GetFullPath (projectFileName);
347 DoLoad (new StreamReader (projectFileName));
350 [MonoTODO ("Not tested")]
351 public void Load (TextReader textReader)
353 fullFileName = String.Empty;
357 public void LoadXml (string projectXml)
359 fullFileName = String.Empty;
360 DoLoad (new StringReader (projectXml));
361 MarkProjectAsDirty ();
365 public void MarkProjectAsDirty ()
368 timeOfLastDirty = DateTime.Now;
371 [MonoTODO ("Not tested")]
372 public void RemoveAllItemGroups ()
374 int length = ItemGroups.Count;
375 BuildItemGroup [] groups = new BuildItemGroup [length];
376 ItemGroups.CopyTo (groups, 0);
378 for (int i = 0; i < length; i++)
379 RemoveItemGroup (groups [i]);
381 MarkProjectAsDirty ();
385 [MonoTODO ("Not tested")]
386 public void RemoveAllPropertyGroups ()
388 int length = PropertyGroups.Count;
389 BuildPropertyGroup [] groups = new BuildPropertyGroup [length];
390 PropertyGroups.CopyTo (groups, 0);
392 for (int i = 0; i < length; i++)
393 RemovePropertyGroup (groups [i]);
395 MarkProjectAsDirty ();
400 public void RemoveItem (BuildItem itemToRemove)
402 if (itemToRemove == null)
403 throw new ArgumentNullException ("itemToRemove");
405 if (!itemToRemove.FromXml && !itemToRemove.HasParent)
406 throw new InvalidOperationException ("The object passed in is not part of the project.");
408 BuildItemGroup big = itemToRemove.ParentItemGroup;
410 if (big.Count == 1) {
411 // ParentItemGroup for items from xml and that have parent is the same
412 groupingCollection.Remove (big);
414 if (big.ParentProject != this)
415 throw new InvalidOperationException ("The object passed in is not part of the project.");
417 if (itemToRemove.FromXml)
418 big.RemoveItem (itemToRemove);
420 big.RemoveItem (itemToRemove.ParentItem);
423 MarkProjectAsDirty ();
427 [MonoTODO ("Not tested")]
428 public void RemoveItemGroup (BuildItemGroup itemGroupToRemove)
430 if (itemGroupToRemove == null)
431 throw new ArgumentNullException ("itemGroupToRemove");
433 groupingCollection.Remove (itemGroupToRemove);
434 MarkProjectAsDirty ();
438 // NOTE: does not modify imported projects
439 public void RemoveItemGroupsWithMatchingCondition (string matchingCondition)
441 throw new NotImplementedException ();
445 public void RemoveItemsByName (string itemName)
447 if (itemName == null)
448 throw new ArgumentNullException ("itemName");
450 throw new NotImplementedException ();
453 [MonoTODO ("Not tested")]
454 public void RemovePropertyGroup (BuildPropertyGroup propertyGroupToRemove)
456 if (propertyGroupToRemove == null)
457 throw new ArgumentNullException ("propertyGroupToRemove");
459 groupingCollection.Remove (propertyGroupToRemove);
460 MarkProjectAsDirty ();
464 // NOTE: does not modify imported projects
465 public void RemovePropertyGroupsWithMatchingCondition (string matchCondition)
467 throw new NotImplementedException ();
471 public void ResetBuildStatus ()
473 throw new NotImplementedException ();
476 public void Save (string projectFileName)
478 Save (projectFileName, Encoding.Default);
482 [MonoTODO ("Ignores encoding")]
483 public void Save (string projectFileName, Encoding encoding)
485 xmlDocument.Save (projectFileName);
489 public void Save (TextWriter outTextWriter)
491 xmlDocument.Save (outTextWriter);
495 public void SetImportedProperty (string propertyName,
496 string propertyValue,
498 Project importProject)
500 SetImportedProperty (propertyName, propertyValue, condition, importProject,
501 PropertyPosition.UseExistingOrCreateAfterLastPropertyGroup);
504 public void SetImportedProperty (string propertyName,
505 string propertyValue,
507 Project importedProject,
508 PropertyPosition position)
510 SetImportedProperty (propertyName, propertyValue, condition, importedProject,
511 PropertyPosition.UseExistingOrCreateAfterLastPropertyGroup, false);
515 public void SetImportedProperty (string propertyName,
516 string propertyValue,
518 Project importedProject,
519 PropertyPosition position,
520 bool treatPropertyValueAsLiteral)
522 throw new NotImplementedException ();
525 public void SetProjectExtensions (string id, string xmlText)
528 throw new ArgumentNullException ("id");
530 throw new ArgumentNullException ("xmlText");
532 XmlNode projectExtensions, node;
534 projectExtensions = xmlDocument.SelectSingleNode ("/tns:Project/tns:ProjectExtensions", XmlNamespaceManager);
536 if (projectExtensions == null) {
537 projectExtensions = xmlDocument.CreateElement ("ProjectExtensions", XmlNamespace);
538 xmlDocument.DocumentElement.AppendChild (projectExtensions);
540 node = xmlDocument.CreateElement (id, XmlNamespace);
541 node.InnerXml = xmlText;
542 projectExtensions.AppendChild (node);
544 node = xmlDocument.SelectSingleNode (String.Format ("/tns:Project/tns:ProjectExtensions/tns:{0}", id), XmlNamespaceManager);
547 node = xmlDocument.CreateElement (id, XmlNamespace);
548 projectExtensions.AppendChild (node);
551 node.InnerXml = xmlText;
555 MarkProjectAsDirty ();
558 public void SetProperty (string propertyName,
559 string propertyValue)
561 SetProperty (propertyName, propertyValue, "true",
562 PropertyPosition.UseExistingOrCreateAfterLastPropertyGroup, false);
565 public void SetProperty (string propertyName,
566 string propertyValue,
569 SetProperty (propertyName, propertyValue, condition,
570 PropertyPosition.UseExistingOrCreateAfterLastPropertyGroup);
573 public void SetProperty (string propertyName,
574 string propertyValue,
576 PropertyPosition position)
578 SetProperty (propertyName, propertyValue, condition,
579 PropertyPosition.UseExistingOrCreateAfterLastPropertyGroup, false);
583 public void SetProperty (string propertyName,
584 string propertyValue,
586 PropertyPosition position,
587 bool treatPropertyValueAsLiteral)
589 throw new NotImplementedException ();
592 internal void Unload ()
597 internal void CheckUnloaded ()
600 throw new InvalidOperationException ("This project object has been unloaded from the MSBuild engine and is no longer valid.");
603 internal void NeedToReevaluate ()
605 needToReevaluate = true;
608 // Does the actual loading.
609 void DoLoad (TextReader textReader)
612 ParentEngine.RemoveLoadedProject (this);
614 XmlReaderSettings settings = new XmlReaderSettings ();
616 if (SchemaFile != null) {
617 settings.Schemas.Add (null, SchemaFile);
618 settings.ValidationType = ValidationType.Schema;
619 settings.ValidationEventHandler += new ValidationEventHandler (ValidationCallBack);
622 XmlReader xmlReader = XmlReader.Create (textReader, settings);
623 xmlDocument.Load (xmlReader);
625 if (xmlDocument.DocumentElement.Name != "Project") {
626 throw new InvalidProjectFileException (String.Format (
627 "The element <{0}> is unrecognized, or not supported in this context.", xmlDocument.DocumentElement.Name));
630 if (xmlDocument.DocumentElement.GetAttribute ("xmlns") != ns) {
631 throw new InvalidProjectFileException (
632 @"The default XML namespace of the project must be the MSBuild XML namespace." +
633 " If the project is authored in the MSBuild 2003 format, please add " +
634 "xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\" to the <Project> element. " +
635 "If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. ");
638 ParentEngine.AddLoadedProject (this);
639 } catch (Exception e) {
640 throw new InvalidProjectFileException (e.Message, e);
653 groupingCollection = new GroupingCollection (this);
654 imports = new ImportCollection (groupingCollection);
655 usingTasks = new UsingTaskCollection (this);
656 itemGroups = new BuildItemGroupCollection (groupingCollection);
657 propertyGroups = new BuildPropertyGroupCollection (groupingCollection);
658 targets = new TargetCollection (this);
659 last_item_group_containing = new Dictionary <string, BuildItemGroup> ();
661 taskDatabase = new TaskDatabase ();
662 if (ParentEngine.DefaultTasksRegistered)
663 taskDatabase.CopyTasks (ParentEngine.DefaultTasks);
665 if (xmlDocument.DocumentElement.GetAttributeNode ("DefaultTargets") != null)
666 defaultTargets = xmlDocument.DocumentElement.GetAttribute ("DefaultTargets").Split (';');
668 defaultTargets = new string [0];
670 ProcessElements (xmlDocument.DocumentElement, null);
676 internal void ProcessElements (XmlElement rootElement, ImportedProject ip)
678 foreach (XmlNode xn in rootElement.ChildNodes) {
679 if (xn is XmlElement) {
680 XmlElement xe = (XmlElement) xn;
682 case "ProjectExtensions":
683 AddProjectExtensions (xe);
694 AddUsingTask (xe, ip);
700 AddItemGroup (xe, ip);
702 case "PropertyGroup":
703 AddPropertyGroup (xe, ip);
709 throw new InvalidProjectFileException ("Invalid element in project file.");
717 evaluatedItems = new BuildItemGroup (null, this, null, true);
718 evaluatedItemsIgnoringCondition = new BuildItemGroup (null, this, null, true);
719 evaluatedItemsByName = new Dictionary <string, BuildItemGroup> (StringComparer.InvariantCultureIgnoreCase);
720 evaluatedItemsByNameIgnoringCondition = new Dictionary <string, BuildItemGroup> (StringComparer.InvariantCultureIgnoreCase);
721 evaluatedProperties = new BuildPropertyGroup (null, null, null, true);
723 InitializeProperties ();
725 groupingCollection.Evaluate ();
727 //FIXME: UsingTasks aren't really evaluated. (shouldn't use expressions or anything)
728 foreach (UsingTask usingTask in UsingTasks)
729 usingTask.Evaluate ();
732 void InitializeProperties ()
736 foreach (BuildProperty gp in GlobalProperties) {
737 bp = new BuildProperty (gp.Name, gp.Value, PropertyType.Global);
738 EvaluatedProperties.AddProperty (bp);
741 foreach (DictionaryEntry de in Environment.GetEnvironmentVariables ()) {
742 bp = new BuildProperty ((string) de.Key, (string) de.Value, PropertyType.Environment);
743 EvaluatedProperties.AddProperty (bp);
746 EvaluatedProperties.AddProperty (new BuildProperty ("MSBuildBinPath", parentEngine.BinPath, PropertyType.Reserved));
748 // FIXME: make some internal method that will work like GetDirectoryName but output String.Empty on null/String.Empty
750 if (FullFileName == String.Empty)
751 projectDir = Environment.CurrentDirectory;
753 projectDir = Path.GetDirectoryName (FullFileName);
755 EvaluatedProperties.AddProperty (new BuildProperty ("MSBuildProjectDirectory", projectDir, PropertyType.Reserved));
758 void AddProjectExtensions (XmlElement xmlElement)
762 void AddMessage (XmlElement xmlElement)
766 void AddTarget (XmlElement xmlElement, ImportedProject importedProject)
768 Target target = new Target (xmlElement, this, importedProject);
769 targets.AddTarget (target);
771 if (firstTargetName == null)
772 firstTargetName = target.Name;
775 void AddUsingTask (XmlElement xmlElement, ImportedProject importedProject)
779 usingTask = new UsingTask (xmlElement, this, importedProject);
780 UsingTasks.Add (usingTask);
783 void AddImport (XmlElement xmlElement, ImportedProject importingProject)
787 import = new Import (xmlElement, this, importingProject);
788 Imports.Add (import);
791 void AddItemGroup (XmlElement xmlElement, ImportedProject importedProject)
793 BuildItemGroup big = new BuildItemGroup (xmlElement, this, importedProject, false);
794 ItemGroups.Add (big);
797 void AddPropertyGroup (XmlElement xmlElement, ImportedProject importedProject)
799 BuildPropertyGroup bpg = new BuildPropertyGroup (xmlElement, this, importedProject, false);
800 PropertyGroups.Add (bpg);
803 void AddChoose (XmlElement xmlElement)
805 BuildChoose bc = new BuildChoose (xmlElement, this);
806 groupingCollection.Add (bc);
809 static void ValidationCallBack (object sender, ValidationEventArgs e)
811 Console.WriteLine ("Validation Error: {0}", e.Message);
814 public bool BuildEnabled {
819 buildEnabled = value;
824 public Encoding Encoding {
825 get { return encoding; }
828 public string DefaultTargets {
830 return xmlDocument.DocumentElement.GetAttribute ("DefaultTargets");
833 xmlDocument.DocumentElement.SetAttribute ("DefaultTargets", value);
834 defaultTargets = value.Split (';');
838 public BuildItemGroup EvaluatedItems {
840 if (needToReevaluate) {
841 needToReevaluate = false;
844 return evaluatedItems;
848 public BuildItemGroup EvaluatedItemsIgnoringCondition {
850 if (needToReevaluate) {
851 needToReevaluate = false;
854 return evaluatedItemsIgnoringCondition;
858 internal IDictionary <string, BuildItemGroup> EvaluatedItemsByName {
860 // FIXME: do we need to do this here?
861 if (needToReevaluate) {
862 needToReevaluate = false;
865 return evaluatedItemsByName;
869 internal IDictionary <string, BuildItemGroup> EvaluatedItemsByNameIgnoringCondition {
871 // FIXME: do we need to do this here?
872 if (needToReevaluate) {
873 needToReevaluate = false;
876 return evaluatedItemsByNameIgnoringCondition;
880 public BuildPropertyGroup EvaluatedProperties {
882 if (needToReevaluate) {
883 needToReevaluate = false;
886 return evaluatedProperties;
890 public string FullFileName {
891 get { return fullFileName; }
892 set { fullFileName = value; }
895 public BuildPropertyGroup GlobalProperties {
896 get { return globalProperties; }
899 throw new ArgumentNullException ("value");
902 throw new InvalidOperationException ("GlobalProperties can not be set to persisted property group.");
904 globalProperties = value;
909 public bool IsDirty {
910 get { return isDirty; }
913 public bool IsValidated {
914 get { return isValidated; }
915 set { isValidated = value; }
918 public BuildItemGroupCollection ItemGroups {
919 get { return itemGroups; }
922 public ImportCollection Imports {
923 get { return imports; }
926 public string InitialTargets {
927 get { return initialTargets; }
928 set { initialTargets = value; }
931 public Engine ParentEngine {
932 get { return parentEngine; }
935 public BuildPropertyGroupCollection PropertyGroups {
936 get { return propertyGroups; }
939 public string SchemaFile {
940 get { return schemaFile; }
941 set { schemaFile = value; }
944 public TargetCollection Targets {
945 get { return targets; }
948 public DateTime TimeOfLastDirty {
949 get { return timeOfLastDirty; }
952 public UsingTaskCollection UsingTasks {
953 get { return usingTasks; }
958 get { return xmlDocument.InnerXml; }
961 internal Dictionary <string, BuildItemGroup> LastItemGroupContaining {
962 get { return last_item_group_containing; }
965 internal static XmlNamespaceManager XmlNamespaceManager {
967 if (manager == null) {
968 manager = new XmlNamespaceManager (new NameTable ());
969 manager.AddNamespace ("tns", ns);
976 internal TaskDatabase TaskDatabase {
977 get { return taskDatabase; }
980 internal XmlDocument XmlDocument {
981 get { return xmlDocument; }
984 internal static string XmlNamespace {