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)
147
internal ProjectRootElementLink RootLink => (ProjectRootElementLink)
Link
;
378
get =>
Link
!= null ? RootLink.DirectoryPath : _directory ?? String.Empty;
396
get =>
Link
!= null ? RootLink.FullPath : _projectFileLocation?.File;
401
if (
Link
!= null)
453
if (
Link
!= null)
553
if (
Link
!= null)
574
public bool HasUnsavedChanges =>
Link
!= null ? RootLink.HasUnsavedChanges : Version != _versionOnDisk;
579
public bool PreserveFormatting =>
Link
!= null ? RootLink.PreserveFormatting : XmlDocument?.PreserveWhitespace ?? false;
603
get =>
Link
!= null ? RootLink.Version : _version;
614
public DateTime TimeLastChanged =>
Link
!= null ? RootLink.TimeLastChanged : _timeLastChangedUtc.ToLocalTime();
621
public DateTime LastWriteTimeWhenRead =>
Link
!= null ? RootLink.LastWriteTimeWhenRead : _lastWriteTimeWhenReadUtc.ToLocalTime();
642
public ElementLocation ProjectFileLocation =>
Link
!= null ? RootLink.ProjectFileLocation : _projectFileLocation ?? ElementLocation.EmptyLocation;
1241
return
Link
!= null ? RootLink.CreateChooseElement() : ProjectChooseElement.CreateDisconnected(this);
1250
return
Link
!= null ? RootLink.CreateImportElement(project) : ProjectImportElement.CreateDisconnected(project, this);
1259
return
Link
!= null ? RootLink.CreateItemElement(itemType) : ProjectItemElement.CreateDisconnected(itemType, this);
1268
if (
Link
!= null)
1286
return
Link
!= null ? RootLink.CreateItemDefinitionElement(itemType) : ProjectItemDefinitionElement.CreateDisconnected(itemType, this);
1295
return
Link
!= null ? RootLink.CreateItemDefinitionGroupElement() : ProjectItemDefinitionGroupElement.CreateDisconnected(this);
1304
return
Link
!= null ? RootLink.CreateItemGroupElement() : ProjectItemGroupElement.CreateDisconnected(this);
1313
return
Link
!= null ? RootLink.CreateImportGroupElement() : ProjectImportGroupElement.CreateDisconnected(this);
1322
return
Link
!= null ? RootLink.CreateMetadataElement(name) : ProjectMetadataElement.CreateDisconnected(name, this);
1340
if (
Link
!= null)
1358
return
Link
!= null ? RootLink.CreateOnErrorElement(executeTargets) : ProjectOnErrorElement.CreateDisconnected(executeTargets, this);
1367
return
Link
!= null ? RootLink.CreateOtherwiseElement() : ProjectOtherwiseElement.CreateDisconnected(this);
1377
return
Link
!= null ? RootLink.CreateOutputElement(taskParameter, itemType, propertyName) : ProjectOutputElement.CreateDisconnected(taskParameter, itemType, propertyName, this);
1386
return
Link
!= null ? RootLink.CreateProjectExtensionsElement() : ProjectExtensionsElement.CreateDisconnected(this);
1395
return
Link
!= null ? RootLink.CreatePropertyGroupElement() : ProjectPropertyGroupElement.CreateDisconnected(this);
1404
return
Link
!= null ? RootLink.CreatePropertyElement(name) : ProjectPropertyElement.CreateDisconnected(name, this);
1413
return
Link
!= null ? RootLink.CreateTargetElement(name) : ProjectTargetElement.CreateDisconnected(name, this);
1422
return
Link
!= null ? RootLink.CreateTaskElement(name) : ProjectTaskElement.CreateDisconnected(name, this);
1443
return
Link
!= null ? RootLink.CreateUsingTaskElement(taskName, assemblyFile, assemblyName, runtime, architecture) : ProjectUsingTaskElement.CreateDisconnected(taskName, assemblyFile, assemblyName, runtime, architecture, this);
1452
return
Link
!= null ? RootLink.CreateUsingTaskParameterGroupElement() : UsingTaskParameterGroupElement.CreateDisconnected(this);
1461
return
Link
!= null ? RootLink.CreateUsingTaskParameterElement(name, output, required, parameterType) : ProjectUsingTaskParameterElement.CreateDisconnected(name, output, required, parameterType, this);
1470
return
Link
!= null ? RootLink.CreateUsingTaskBodyElement(evaluate, body) : ProjectUsingTaskBodyElement.CreateDisconnected(evaluate, body, this);
1479
return
Link
!= null ? RootLink.CreateWhenElement(condition) : ProjectWhenElement.CreateDisconnected(condition, this);
1487
return
Link
!= null ? RootLink.CreateProjectSdkElement(sdkName, sdkVersion) : ProjectSdkElement.CreateDisconnected(sdkName, sdkVersion, this);
1510
if (
Link
!= null)
1591
if (
Link
!= null)
1639
if (
Link
!= null)
1670
if (
Link
!= null)
1794
ErrorUtilities.VerifyThrow(
Link
== null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
1820
if (
Link
!= null)
1851
ErrorUtilities.VerifyThrow(
Link
== null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
1982
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)
1383
if (projectRootElement.
Link
!= null)
1533
if (projectRootElement.
Link
!= null)
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
17
/// <see cref="ProjectElement.XmlElement"/> and <see cref="ProjectElement.
Link
"/>