138 references to Link
Microsoft.Build (138)
Construction\ProjectChooseElement.cs (1)
90Assumed.Null(containingProject.Link, "Attempt to edit a document that is not backed by a local xml is disallowed.");
Construction\ProjectElement.cs (37)
80get => Link != null ? Link.ExpressedAsAttribute : _expressedAsAttribute; 83if (Link != null) 85Link.ExpressedAsAttribute = value; 154if (this.Link != null) { return this.Link.Parent; } 167Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 183public string OuterElement => Link != null ? Link.OuterElement : XmlElement.OuterXml; 213get => Link != null ? Link.PreviousSibling : _previousSibling; 228get => Link != null ? Link.NextSibling : _nextSibling; 245if (Link != null) 247return Link.ContainingProject; 264Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 294public ElementLocation Location => Link != null ? Link.Location : XmlElement.Location; 297public string ElementName => Link != null ? Link.ElementName : XmlElement.Name; 307object ILinkableObject.Link => Link; 361if (Link != null) 363Link.CopyFrom(element); 378if (element.Link != null) 380foreach (var remoteAttribute in element.Link.Attributes) 387var pureText = element.Link.PureText; 526if (xml.Link != null) 528return xml.Link.CreateNewInstance(owner); 536return Link != null ? Link.GetAttributeLocation(attributeName) : XmlElement.GetAttributeLocation(attributeName); 541return Link != null ? Link.GetAttributeValue(attributeName, nullIfNotExists) : 553if (Link == null) 577if (Link != null) 579Link.SetOrRemoveAttribute(name, value, false, reason, param); 593if (Link != null) 595Link.SetOrRemoveAttribute(name, value, true, reason, param);
Construction\ProjectElementContainer.cs (14)
29internal ProjectElementContainerLink ContainerLink => (ProjectElementContainerLink)Link; 117public int Count { get => Link != null ? ContainerLink.Count : _count; private set => _count = value; } 123public ProjectElement FirstChild { get => Link != null ? ContainerLink.FirstChild : _firstChild; private set => _firstChild = value; } 129public ProjectElement LastChild { get => Link != null ? ContainerLink.LastChild : _lastChild; private set => _lastChild = value; } 146if (Link != null) 202if (Link != null) 299if (Link != null) 391Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 441Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 458Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 474Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 494Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 609Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 653if (Link != null)
Construction\ProjectExtensionsElement.cs (5)
22internal ProjectExtensionsElementLink ExtensionLink => (ProjectExtensionsElementLink)Link; 67return Link != null ? ExtensionLink.Content : XmlElement.InnerXml; 73if (Link != null) 100if (Link != null) 116if (Link != null)
Construction\ProjectImportElement.cs (3)
20internal ProjectImportElementLink ImportLink => (ProjectImportElementLink)Link; 126public ImplicitImportLocation ImplicitImportLocation { get => Link != null ? ImportLink.ImplicitImportLocation : _implicitImportLocation; internal set => _implicitImportLocation = value; } 132public ProjectElement OriginalElement { get => Link != null ? ImportLink.OriginalElement : _originalElement; internal set => _originalElement = value; }
Construction\ProjectItemElement.cs (2)
21internal ProjectItemElementLink ItemLink => (ProjectItemElementLink)Link; 450if (Link != null)
Construction\ProjectItemGroupElement.cs (1)
70if (Link != null)
Construction\ProjectMetadataElement.cs (4)
20internal ProjectMetadataElementLink MetadataLink => (ProjectMetadataElementLink)Link; 84get => Link != null ? MetadataLink.Value : Internal.Utilities.GetXmlNodeInnerContents(XmlElement); 88if (Link != null) 128if (Link != null)
Construction\ProjectPropertyElement.cs (4)
27internal ProjectPropertyElementLink PropertyLink => (ProjectPropertyElementLink)Link; 69get => Link != null ? PropertyLink.Value : Internal.Utilities.GetXmlNodeInnerContents(XmlElement); 74if (Link != null) 116if (Link != null)
Construction\ProjectRootElement.cs (45)
155internal ProjectRootElementLink RootLink => (ProjectRootElementLink)Link; 396get => Link != null ? RootLink.DirectoryPath : _directory ?? String.Empty; 414get => Link != null ? RootLink.FullPath : _projectFileLocation?.File; 419if (Link != null) 471if (Link != null) 571if (Link != null) 592public bool HasUnsavedChanges => Link != null ? RootLink.HasUnsavedChanges : Version != _versionOnDisk; 597public bool PreserveFormatting => Link != null ? RootLink.PreserveFormatting : XmlDocument?.PreserveWhitespace ?? false; 621get => Link != null ? RootLink.Version : _version; 632public DateTime TimeLastChanged => Link != null ? RootLink.TimeLastChanged : _timeLastChangedUtc.ToLocalTime(); 639public DateTime LastWriteTimeWhenRead => Link != null ? RootLink.LastWriteTimeWhenRead : _lastWriteTimeWhenReadUtc.ToLocalTime(); 654public ElementLocation ProjectFileLocation => Link != null ? RootLink.ProjectFileLocation : _projectFileLocation ?? ElementLocation.EmptyLocation; 1265return Link != null ? RootLink.CreateChooseElement() : ProjectChooseElement.CreateDisconnected(this); 1274return Link != null ? RootLink.CreateImportElement(project) : ProjectImportElement.CreateDisconnected(project, this); 1283return Link != null ? RootLink.CreateItemElement(itemType) : ProjectItemElement.CreateDisconnected(itemType, this); 1292if (Link != null) 1310return Link != null ? RootLink.CreateItemDefinitionElement(itemType) : ProjectItemDefinitionElement.CreateDisconnected(itemType, this); 1319return Link != null ? RootLink.CreateItemDefinitionGroupElement() : ProjectItemDefinitionGroupElement.CreateDisconnected(this); 1328return Link != null ? RootLink.CreateItemGroupElement() : ProjectItemGroupElement.CreateDisconnected(this); 1337return Link != null ? RootLink.CreateImportGroupElement() : ProjectImportGroupElement.CreateDisconnected(this); 1346return Link != null ? RootLink.CreateMetadataElement(name) : ProjectMetadataElement.CreateDisconnected(name, this); 1364if (Link != null) 1382return Link != null ? RootLink.CreateOnErrorElement(executeTargets) : ProjectOnErrorElement.CreateDisconnected(executeTargets, this); 1391return Link != null ? RootLink.CreateOtherwiseElement() : ProjectOtherwiseElement.CreateDisconnected(this); 1401return Link != null ? RootLink.CreateOutputElement(taskParameter, itemType, propertyName) : ProjectOutputElement.CreateDisconnected(taskParameter, itemType, propertyName, this); 1410return Link != null ? RootLink.CreateProjectExtensionsElement() : ProjectExtensionsElement.CreateDisconnected(this); 1419return Link != null ? RootLink.CreatePropertyGroupElement() : ProjectPropertyGroupElement.CreateDisconnected(this); 1428return Link != null ? RootLink.CreatePropertyElement(name) : ProjectPropertyElement.CreateDisconnected(name, this); 1437return Link != null ? RootLink.CreateTargetElement(name) : ProjectTargetElement.CreateDisconnected(name, this); 1446return Link != null ? RootLink.CreateTaskElement(name) : ProjectTaskElement.CreateDisconnected(name, this); 1467return Link != null ? RootLink.CreateUsingTaskElement(taskName, assemblyFile, assemblyName, runtime, architecture) : ProjectUsingTaskElement.CreateDisconnected(taskName, assemblyFile, assemblyName, runtime, architecture, this); 1476return Link != null ? RootLink.CreateUsingTaskParameterGroupElement() : UsingTaskParameterGroupElement.CreateDisconnected(this); 1485return Link != null ? RootLink.CreateUsingTaskParameterElement(name, output, required, parameterType) : ProjectUsingTaskParameterElement.CreateDisconnected(name, output, required, parameterType, this); 1494return Link != null ? RootLink.CreateUsingTaskBodyElement(evaluate, body) : ProjectUsingTaskBodyElement.CreateDisconnected(evaluate, body, this); 1503return Link != null ? RootLink.CreateWhenElement(condition) : ProjectWhenElement.CreateDisconnected(condition, this); 1511return Link != null ? RootLink.CreateProjectSdkElement(sdkName, sdkVersion) : ProjectSdkElement.CreateDisconnected(sdkName, sdkVersion, this); 1534if (Link != null) 1615if (Link != null) 1663if (Link != null) 1694if (Link != null) 1818Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 1849if (Link != null) 1880Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 2011return Link != null ? Link.CreateNewInstance(owner) : Create(owner.ProjectRootElementCache);
Construction\ProjectTargetElement.cs (4)
23internal ProjectTargetElementLink TargetLink => (ProjectTargetElementLink)Link; 86if (Link != null) { return TargetLink.Name; } 101if (Link != null) 264if (Link != null)
Construction\ProjectTaskElement.cs (8)
23internal ProjectTaskElementLink TaskLink => (ProjectTaskElementLink)Link; 140if (Link != null) 170if (Link != null) 215Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 292if (Link != null) 317if (Link != null) 341if (Link != null) 361if (Link != null)
Construction\ProjectUsingTaskBodyElement.cs (4)
21internal ProjectUsingTaskBodyElementLink UsingTaskBodyLink => (ProjectUsingTaskBodyElementLink)Link; 65get => Link != null ? UsingTaskBodyLink.TaskBody : Internal.Utilities.GetXmlNodeInnerContents(XmlElement); 69if (Link != null) 161Assumed.Null(parentUsingTask.Link, "TaskFactory");
Construction\ProjectUsingTaskParameterElement.cs (2)
19private ProjectUsingTaskParameterElementLink TaskParameterLink => (ProjectUsingTaskParameterElementLink)Link; 66if (Link != null) { TaskParameterLink.Name = value; return; }
Construction\UsingTaskParameterGroupElement.cs (1)
129Assumed.Null(parentUsingTask.Link, "TaskFactory");
Definition\ProjectCollection.cs (2)
1467if (projectRootElement.Link != null) 1617if (projectRootElement.Link != null)
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
17/// <see cref="ProjectElement.XmlElement"/> and <see cref="ProjectElement.Link"/>