39 references to ProjectXml
Microsoft.Build.Engine.OM.UnitTests (39)
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (39)
32public int Version => this.ProjectXml.Version; 33public bool HasUnsavedChanges => this.ProjectXml.HasUnsavedChanges; 34public DateTime TimeLastChanged => this.ProjectXml.TimeLastChanged; 35public DateTime LastWriteTimeWhenRead => this.ProjectXml.LastWriteTimeWhenRead; 36public string DirectoryPath => this.ProjectXml.DirectoryPath; 37public string FullPath { get => this.ProjectXml.FullPath; set => this.ProjectXml.FullPath = value; } 38public ElementLocation ProjectFileLocation => this.ProjectXml.ProjectFileLocation; 39public Encoding Encoding => this.ProjectXml.Encoding; // !! more complicated in reality when passing cross process. 40public string RawXml => this.ProjectXml.RawXml; 41public bool PreserveFormatting => this.ProjectXml.PreserveFormatting; 44return (MockProjectChooseElementLinkRemoter)this.Export(this.ProjectXml.CreateChooseElement()); 48return (MockProjectImportElementLinkRemoter)this.Export(this.ProjectXml.CreateImportElement(project)); 52return (MockProjectItemElementLinkRemoter)this.Export(this.ProjectXml.CreateItemElement(itemType)); 56return (MockProjectItemElementLinkRemoter)this.Export(this.ProjectXml.CreateItemElement(itemType, include)); 60return (MockProjectItemDefinitionElementLinkRemoter)this.Export(this.ProjectXml.CreateItemDefinitionElement(itemType)); 64return (MockProjectItemDefinitionGroupElementLinkRemoter)this.Export(this.ProjectXml.CreateItemDefinitionGroupElement()); 68return (MockProjectItemGroupElementLinkRemoter)this.Export(this.ProjectXml.CreateItemGroupElement()); 72return (MockProjectImportGroupElementLinkRemoter)this.Export(this.ProjectXml.CreateImportGroupElement()); 76return (MockProjectMetadataElementLinkRemoter)this.Export(this.ProjectXml.CreateMetadataElement(name)); 80return (MockProjectMetadataElementLinkRemoter)this.Export(this.ProjectXml.CreateMetadataElement(name, unevaluatedValue)); 84return (MockProjectOnErrorElementLinkRemoter)this.Export(this.ProjectXml.CreateOnErrorElement(executeTargets)); 88return (MockProjectOtherwiseElementLinkRemoter)this.Export(this.ProjectXml.CreateOtherwiseElement()); 92return (MockProjectOutputElementLinkRemoter)this.Export(this.ProjectXml.CreateOutputElement(taskParameter, itemType, propertyName)); 96return (MockProjectExtensionsElementLinkRemoter)this.Export(this.ProjectXml.CreateProjectExtensionsElement()); 100return (MockProjectPropertyGroupElementLinkRemoter)this.Export(this.ProjectXml.CreatePropertyGroupElement()); 104return (MockProjectPropertyElementLinkRemoter)this.Export(this.ProjectXml.CreatePropertyElement(name)); 108return (MockProjectTargetElementLinkRemoter)this.Export(this.ProjectXml.CreateTargetElement(name)); 112return (MockProjectTaskElementLinkRemoter)this.Export(this.ProjectXml.CreateTaskElement(name)); 116return (MockProjectUsingTaskElementLinkRemoter)this.Export(this.ProjectXml.CreateUsingTaskElement(taskName, assemblyFile, assemblyName, runtime, architecture)); 120return (MockUsingTaskParameterGroupElementLinkRemoter)this.Export(this.ProjectXml.CreateUsingTaskParameterGroupElement()); 124return (MockProjectUsingTaskParameterElementLinkRemoter)this.Export(this.ProjectXml.CreateUsingTaskParameterElement(name, output, required, parameterType)); 128return (MockProjectUsingTaskBodyElementLinkRemoter)this.Export(this.ProjectXml.CreateUsingTaskBodyElement(evaluate, body)); 132return (MockProjectWhenElementLinkRemoter)this.Export(this.ProjectXml.CreateWhenElement(condition)); 136return (MockProjectSdkElementLinkRemoter)this.Export(this.ProjectXml.CreateProjectSdkElement(sdkName, sdkVersion)); 139public void Save(Encoding saveEncoding) { this.ProjectXml.Save(saveEncoding); } 140public void Save(TextWriter writer) { this.ProjectXml.Save(writer); } 142public void ReloadFrom(string path, bool throwIfUnsavedChanges, bool preserveFormatting) { this.ProjectXml.ReloadFrom(path, throwIfUnsavedChanges, preserveFormatting); } 143public void ReloadFrom(XmlReader reader, bool throwIfUnsavedChanges, bool preserveFormatting) { this.ProjectXml.ReloadFrom(reader, throwIfUnsavedChanges, preserveFormatting); }