32 references to Xml
Microsoft.Build (27)
Definition\Project.cs (19)
487projectCollection.TryUnloadProject(Xml); 758/// The actual tools version on the Project tag, can be gotten from <see cref="Xml">Xml.ToolsVersion</see>. 776public string DirectoryPath => Xml.DirectoryPath; 786get => Xml.FullPath; 788set => Xml.FullPath = value; 838public ElementLocation ProjectFileLocation => Xml.ProjectFileLocation; 1454Xml.Save(); 1462Xml.Save(encoding); 1471Xml.Save(path); 1479Xml.Save(path, encoding); 1489Xml.Save(writer); 1844ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.Location.File); 4343RecordImport(null, Project.Xml, Project.Xml.Version, null); 4345ElementLocation toolsVersionLocation = Project.Xml.ProjectFileLocation; 4347if (Project.Xml.ToolsVersion.Length > 0) 4349OriginalProjectToolsVersion = Project.Xml.ToolsVersion; 4350toolsVersionLocation = Project.Xml.ToolsVersionLocation; 4355Project.Xml.ToolsVersion,
Definition\ProjectItem.cs (1)
251bool isImported = !Object.ReferenceEquals(_xml.ContainingProject, _project.Xml);
Definition\ProjectItemDefinition.cs (1)
173ProjectItemDefinitionElement itemDefinition = _project.Xml.AddItemDefinition(_itemType);
Definition\ProjectMetadata.cs (1)
214bool isImported = !Object.ReferenceEquals(_xml.ContainingProject, _parent.Project.Xml);
Definition\ProjectProperty.cs (2)
477bool isImported = !Object.ReferenceEquals(_xml.ContainingProject, _project.Xml); 601_project.Xml.AddProperty(_name, value);
Definition\ResolvedImport.cs (1)
43IsImported = importingElement != null && !ReferenceEquals(project.Xml, importingElement.ContainingProject);
Evaluation\Preprocessor.cs (1)
93XmlDocument outerDocument = _project.Xml.XmlDocument;
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
23/// Access to remote <see cref="Project.Xml"/>.
NuGet.CommandLine.XPlat (5)
Utility\MSBuildAPIUtility.cs (5)
546var itemGroup = project.Xml.AddItemGroup(); 935var newProject = new ProjectInstance(project.Xml, globalProperties, null, ProjectCollection.GlobalProjectCollection); 1103virtualProject.Builder.SaveProject(virtualProject.EntryPointFilePath, Project.Xml); 1113if (projectRootElement == Project.Xml) 1125return this with { Project = new Project(Project.Xml, globalProperties, toolsVersion: null) };