138 references to Link
Microsoft.Build (138)
Construction\ProjectChooseElement.cs (1)
95
ErrorUtilities.VerifyThrow(containingProject.
Link
== null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
Construction\ProjectElement.cs (37)
80
get =>
Link
!= null ?
Link
.ExpressedAsAttribute : _expressedAsAttribute;
83
if (
Link
!= null)
85
Link
.ExpressedAsAttribute = value;
154
if (this.
Link
!= null) { return this.
Link
.Parent; }
167
ErrorUtilities.VerifyThrow(
Link
== null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
183
public string OuterElement =>
Link
!= null ?
Link
.OuterElement : XmlElement.OuterXml;
213
get =>
Link
!= null ?
Link
.PreviousSibling : _previousSibling;
228
get =>
Link
!= null ?
Link
.NextSibling : _nextSibling;
245
if (
Link
!= null)
247
return
Link
.ContainingProject;
264
ErrorUtilities.VerifyThrow(
Link
== null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
294
public ElementLocation Location =>
Link
!= null ?
Link
.Location : XmlElement.Location;
297
public string ElementName =>
Link
!= null ?
Link
.ElementName : XmlElement.Name;
307
object ILinkableObject.Link =>
Link
;
361
if (
Link
!= null)
363
Link
.CopyFrom(element);
378
if (element.
Link
!= null)
380
foreach (var remoteAttribute in element.
Link
.Attributes)
387
var pureText = element.
Link
.PureText;
526
if (xml.
Link
!= null)
528
return xml.
Link
.CreateNewInstance(owner);
536
return
Link
!= null ?
Link
.GetAttributeLocation(attributeName) : XmlElement.GetAttributeLocation(attributeName);
541
return
Link
!= null ?
Link
.GetAttributeValue(attributeName, nullIfNotExists) :
553
if (
Link
== null)
577
if (
Link
!= null)
579
Link
.SetOrRemoveAttribute(name, value, false, reason, param);
593
if (
Link
!= null)
595
Link
.SetOrRemoveAttribute(name, value, true, reason, param);
Construction\ProjectElementContainer.cs (14)
29
internal ProjectElementContainerLink ContainerLink => (ProjectElementContainerLink)
Link
;
117
public int Count { get =>
Link
!= null ? ContainerLink.Count : _count; private set => _count = value; }
123
public ProjectElement FirstChild { get =>
Link
!= null ? ContainerLink.FirstChild : _firstChild; private set => _firstChild = value; }
129
public ProjectElement LastChild { get =>
Link
!= null ? ContainerLink.LastChild : _lastChild; private set => _lastChild = value; }
146
if (
Link
!= null)
202
if (
Link
!= null)
299
if (
Link
!= null)
391
ErrorUtilities.VerifyThrow(
Link
== null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
441
ErrorUtilities.VerifyThrow(
Link
== null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
458
ErrorUtilities.VerifyThrow(
Link
== null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
474
ErrorUtilities.VerifyThrow(
Link
== null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
494
ErrorUtilities.VerifyThrow(
Link
== null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
600
ErrorUtilities.VerifyThrow(
Link
== null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
644
if (
Link
!= null)
Construction\ProjectExtensionsElement.cs (5)
22
internal ProjectExtensionsElementLink ExtensionLink => (ProjectExtensionsElementLink)
Link
;
67
return
Link
!= null ? ExtensionLink.Content : XmlElement.InnerXml;
73
if (
Link
!= null)
106
if (
Link
!= null)
122
if (
Link
!= null)
Construction\ProjectImportElement.cs (3)
19
internal ProjectImportElementLink ImportLink => (ProjectImportElementLink)
Link
;
125
public ImplicitImportLocation ImplicitImportLocation { get =>
Link
!= null ? ImportLink.ImplicitImportLocation : _implicitImportLocation; internal set => _implicitImportLocation = value; }
131
public ProjectElement OriginalElement { get =>
Link
!= null ? ImportLink.OriginalElement : _originalElement; internal set => _originalElement = value; }
Construction\ProjectItemElement.cs (2)
21
internal ProjectItemElementLink ItemLink => (ProjectItemElementLink)
Link
;
445
if (
Link
!= null)
Construction\ProjectItemGroupElement.cs (1)
70
if (
Link
!= null)
Construction\ProjectMetadataElement.cs (4)
18
internal ProjectMetadataElementLink MetadataLink => (ProjectMetadataElementLink)
Link
;
82
get =>
Link
!= null ? MetadataLink.Value : Internal.Utilities.GetXmlNodeInnerContents(XmlElement);
86
if (
Link
!= null)
126
if (
Link
!= null)
Construction\ProjectPropertyElement.cs (4)
26
internal ProjectPropertyElementLink PropertyLink => (ProjectPropertyElementLink)
Link
;
68
get =>
Link
!= null ? PropertyLink.Value : Internal.Utilities.GetXmlNodeInnerContents(XmlElement);
73
if (
Link
!= null)
115
if (
Link
!= null)
Construction\ProjectRootElement.cs (45)
155
internal ProjectRootElementLink RootLink => (ProjectRootElementLink)
Link
;
396
get =>
Link
!= null ? RootLink.DirectoryPath : _directory ?? String.Empty;
414
get =>
Link
!= null ? RootLink.FullPath : _projectFileLocation?.File;
419
if (
Link
!= null)
471
if (
Link
!= null)
571
if (
Link
!= null)
592
public bool HasUnsavedChanges =>
Link
!= null ? RootLink.HasUnsavedChanges : Version != _versionOnDisk;
597
public bool PreserveFormatting =>
Link
!= null ? RootLink.PreserveFormatting : XmlDocument?.PreserveWhitespace ?? false;
621
get =>
Link
!= null ? RootLink.Version : _version;
632
public DateTime TimeLastChanged =>
Link
!= null ? RootLink.TimeLastChanged : _timeLastChangedUtc.ToLocalTime();
639
public DateTime LastWriteTimeWhenRead =>
Link
!= null ? RootLink.LastWriteTimeWhenRead : _lastWriteTimeWhenReadUtc.ToLocalTime();
660
public ElementLocation ProjectFileLocation =>
Link
!= null ? RootLink.ProjectFileLocation : _projectFileLocation ?? ElementLocation.EmptyLocation;
1271
return
Link
!= null ? RootLink.CreateChooseElement() : ProjectChooseElement.CreateDisconnected(this);
1280
return
Link
!= null ? RootLink.CreateImportElement(project) : ProjectImportElement.CreateDisconnected(project, this);
1289
return
Link
!= null ? RootLink.CreateItemElement(itemType) : ProjectItemElement.CreateDisconnected(itemType, this);
1298
if (
Link
!= null)
1316
return
Link
!= null ? RootLink.CreateItemDefinitionElement(itemType) : ProjectItemDefinitionElement.CreateDisconnected(itemType, this);
1325
return
Link
!= null ? RootLink.CreateItemDefinitionGroupElement() : ProjectItemDefinitionGroupElement.CreateDisconnected(this);
1334
return
Link
!= null ? RootLink.CreateItemGroupElement() : ProjectItemGroupElement.CreateDisconnected(this);
1343
return
Link
!= null ? RootLink.CreateImportGroupElement() : ProjectImportGroupElement.CreateDisconnected(this);
1352
return
Link
!= null ? RootLink.CreateMetadataElement(name) : ProjectMetadataElement.CreateDisconnected(name, this);
1370
if (
Link
!= null)
1388
return
Link
!= null ? RootLink.CreateOnErrorElement(executeTargets) : ProjectOnErrorElement.CreateDisconnected(executeTargets, this);
1397
return
Link
!= null ? RootLink.CreateOtherwiseElement() : ProjectOtherwiseElement.CreateDisconnected(this);
1407
return
Link
!= null ? RootLink.CreateOutputElement(taskParameter, itemType, propertyName) : ProjectOutputElement.CreateDisconnected(taskParameter, itemType, propertyName, this);
1416
return
Link
!= null ? RootLink.CreateProjectExtensionsElement() : ProjectExtensionsElement.CreateDisconnected(this);
1425
return
Link
!= null ? RootLink.CreatePropertyGroupElement() : ProjectPropertyGroupElement.CreateDisconnected(this);
1434
return
Link
!= null ? RootLink.CreatePropertyElement(name) : ProjectPropertyElement.CreateDisconnected(name, this);
1443
return
Link
!= null ? RootLink.CreateTargetElement(name) : ProjectTargetElement.CreateDisconnected(name, this);
1452
return
Link
!= null ? RootLink.CreateTaskElement(name) : ProjectTaskElement.CreateDisconnected(name, this);
1473
return
Link
!= null ? RootLink.CreateUsingTaskElement(taskName, assemblyFile, assemblyName, runtime, architecture) : ProjectUsingTaskElement.CreateDisconnected(taskName, assemblyFile, assemblyName, runtime, architecture, this);
1482
return
Link
!= null ? RootLink.CreateUsingTaskParameterGroupElement() : UsingTaskParameterGroupElement.CreateDisconnected(this);
1491
return
Link
!= null ? RootLink.CreateUsingTaskParameterElement(name, output, required, parameterType) : ProjectUsingTaskParameterElement.CreateDisconnected(name, output, required, parameterType, this);
1500
return
Link
!= null ? RootLink.CreateUsingTaskBodyElement(evaluate, body) : ProjectUsingTaskBodyElement.CreateDisconnected(evaluate, body, this);
1509
return
Link
!= null ? RootLink.CreateWhenElement(condition) : ProjectWhenElement.CreateDisconnected(condition, this);
1517
return
Link
!= null ? RootLink.CreateProjectSdkElement(sdkName, sdkVersion) : ProjectSdkElement.CreateDisconnected(sdkName, sdkVersion, this);
1540
if (
Link
!= null)
1621
if (
Link
!= null)
1669
if (
Link
!= null)
1700
if (
Link
!= null)
1824
ErrorUtilities.VerifyThrow(
Link
== null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
1855
if (
Link
!= null)
1886
ErrorUtilities.VerifyThrow(
Link
== null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
2017
return
Link
!= null ?
Link
.CreateNewInstance(owner) : Create(owner.ProjectRootElementCache);
Construction\ProjectTargetElement.cs (4)
23
internal ProjectTargetElementLink TargetLink => (ProjectTargetElementLink)
Link
;
86
if (
Link
!= null) { return TargetLink.Name; }
101
if (
Link
!= null)
264
if (
Link
!= null)
Construction\ProjectTaskElement.cs (8)
23
internal ProjectTaskElementLink TaskLink => (ProjectTaskElementLink)
Link
;
140
if (
Link
!= null)
170
if (
Link
!= null)
215
ErrorUtilities.VerifyThrow(
Link
== null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
292
if (
Link
!= null)
317
if (
Link
!= null)
341
if (
Link
!= null)
361
if (
Link
!= null)
Construction\ProjectUsingTaskBodyElement.cs (4)
20
internal ProjectUsingTaskBodyElementLink UsingTaskBodyLink => (ProjectUsingTaskBodyElementLink)
Link
;
64
get =>
Link
!= null ? UsingTaskBodyLink.TaskBody : Internal.Utilities.GetXmlNodeInnerContents(XmlElement);
68
if (
Link
!= null)
166
ErrorUtilities.VerifyThrow(parentUsingTask.
Link
== null, "TaskFactory");
Construction\ProjectUsingTaskParameterElement.cs (2)
19
private ProjectUsingTaskParameterElementLink TaskParameterLink => (ProjectUsingTaskParameterElementLink)
Link
;
66
if (
Link
!= null) { TaskParameterLink.Name = value; return; }
Construction\UsingTaskParameterGroupElement.cs (1)
135
ErrorUtilities.VerifyThrow(parentUsingTask.
Link
== null, "TaskFactory");
Definition\ProjectCollection.cs (2)
1388
if (projectRootElement.
Link
!= null)
1538
if (projectRootElement.
Link
!= null)
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
17
/// <see cref="ProjectElement.XmlElement"/> and <see cref="ProjectElement.
Link
"/>