32 references to Xml
Microsoft.Build (27)
Definition\Project.cs (19)
487projectCollection.TryUnloadProject(Xml); 740/// The actual tools version on the Project tag, can be gotten from <see cref="Xml">Xml.ToolsVersion</see>. 758public string DirectoryPath => Xml.DirectoryPath; 768get => Xml.FullPath; 770set => Xml.FullPath = value; 820public ElementLocation ProjectFileLocation => Xml.ProjectFileLocation; 1436Xml.Save(); 1444Xml.Save(encoding); 1453Xml.Save(path); 1461Xml.Save(path, encoding); 1471Xml.Save(writer); 1815ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.Location.File); 4301RecordImport(null, Project.Xml, Project.Xml.Version, null); 4303ElementLocation toolsVersionLocation = Project.Xml.ProjectFileLocation; 4305if (Project.Xml.ToolsVersion.Length > 0) 4307OriginalProjectToolsVersion = Project.Xml.ToolsVersion; 4308toolsVersionLocation = Project.Xml.ToolsVersionLocation; 4313Project.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)
22/// Access to remote <see cref="Project.Xml"/>.
NuGet.CommandLine.XPlat (5)
Utility\MSBuildAPIUtility.cs (5)
546var itemGroup = project.Xml.AddItemGroup(); 934var newProject = new ProjectInstance(project.Xml, globalProperties, null, ProjectCollection.GlobalProjectCollection); 1102virtualProject.Builder.SaveProject(virtualProject.EntryPointFilePath, Project.Xml); 1112if (projectRootElement == Project.Xml) 1124return this with { Project = new Project(Project.Xml, globalProperties, toolsVersion: null) };