32 references to Xml
Microsoft.Build (27)
Definition\Project.cs (19)
476projectCollection.TryUnloadProject(Xml); 747/// The actual tools version on the Project tag, can be gotten from <see cref="Xml">Xml.ToolsVersion</see>. 765public string DirectoryPath => Xml.DirectoryPath; 775get => Xml.FullPath; 777set => Xml.FullPath = value; 827public ElementLocation ProjectFileLocation => Xml.ProjectFileLocation; 1443Xml.Save(); 1451Xml.Save(encoding); 1460Xml.Save(path); 1468Xml.Save(path, encoding); 1478Xml.Save(writer); 1833ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.Location.File); 4177RecordImport(null, Project.Xml, Project.Xml.Version, null); 4179ElementLocation toolsVersionLocation = Project.Xml.ProjectFileLocation; 4181if (Project.Xml.ToolsVersion.Length > 0) 4183OriginalProjectToolsVersion = Project.Xml.ToolsVersion; 4184toolsVersionLocation = Project.Xml.ToolsVersionLocation; 4189Project.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)
547var itemGroup = project.Xml.AddItemGroup(); 937var newProject = new ProjectInstance(project.Xml, globalProperties, null, ProjectCollection.GlobalProjectCollection); 1105virtualProject.Builder.SaveProject(virtualProject.EntryPointFilePath, Project.Xml); 1115if (projectRootElement == Project.Xml) 1127return this with { Project = new Project(Project.Xml, globalProperties, toolsVersion: null) };