3 writes to SdkReference
Microsoft.Build (3)
Construction\ProjectImportElement.cs (3)
39
SdkReference
= sdkReference;
167
SdkReference
= sdkReference,
200
SdkReference
= sdk;
57 references to SdkReference
Microsoft.Build (10)
Construction\ProjectImportElement.cs (9)
78
if (UpdateSdkReference(name: value,
SdkReference
?.Version,
SdkReference
?.MinimumVersion))
93
if (UpdateSdkReference(
SdkReference
?.Name, version: value,
SdkReference
?.MinimumVersion))
108
if (UpdateSdkReference(
SdkReference
?.Name,
SdkReference
?.Version, minimumVersion: value))
188
/// Helper method to update the <see cref="
SdkReference
" /> property if necessary (update only when changed).
190
/// <returns>True if the <see cref="
SdkReference
" /> property was updated, otherwise false (no update necessary).</returns>
195
if (sdk.Equals(
SdkReference
))
Evaluation\Evaluator.cs (1)
1717
SdkReference sdkReference = importElement.
SdkReference
;
Microsoft.Build.Engine.UnitTests (47)
Construction\ProjectImportElement_Tests.cs (42)
32
importElement.
SdkReference
.Name.ShouldBe("My.Sdk");
33
importElement.
SdkReference
.Version.ShouldBe("1.2.0");
34
importElement.
SdkReference
.MinimumVersion.ShouldBeNull();
42
importElement.
SdkReference
.Name.ShouldBe("My.Sdk");
43
importElement.
SdkReference
.Version.ShouldBe("1.2.0");
44
importElement.
SdkReference
.MinimumVersion.ShouldBe("1.0.0");
48
importElement.
SdkReference
.Name.ShouldBe("Some.Other.Sdk");
49
importElement.
SdkReference
.Version.ShouldBe("1.2.0");
50
importElement.
SdkReference
.MinimumVersion.ShouldBe("1.0.0");
69
importElement.
SdkReference
.Name.ShouldBe("My.Sdk");
70
importElement.
SdkReference
.Version.ShouldBeNull();
71
importElement.
SdkReference
.MinimumVersion.ShouldBeNull();
78
importElement.
SdkReference
.Name.ShouldBe("My.Sdk");
79
importElement.
SdkReference
.Version.ShouldBe("1.2.0");
80
importElement.
SdkReference
.MinimumVersion.ShouldBeNull();
85
importElement.
SdkReference
.Name.ShouldBe("My.Sdk");
86
importElement.
SdkReference
.Version.ShouldBe("1.2.0");
87
importElement.
SdkReference
.MinimumVersion.ShouldBe("1.0.0");
106
importElement.
SdkReference
.Name.ShouldBe("My.Sdk");
107
importElement.
SdkReference
.Version.ShouldBeNull();
108
importElement.
SdkReference
.MinimumVersion.ShouldBeNull();
113
importElement.
SdkReference
.Name.ShouldBe("My.Sdk");
114
importElement.
SdkReference
.Version.ShouldBe("1.2.0");
115
importElement.
SdkReference
.MinimumVersion.ShouldBeNull();
120
importElement.
SdkReference
.Name.ShouldBe("My.Sdk");
121
importElement.
SdkReference
.Version.ShouldBe("1.2.0");
122
importElement.
SdkReference
.MinimumVersion.ShouldBe("1.0.0");
130
importElement.
SdkReference
.Name.ShouldBe("Some.Other.Sdk");
131
importElement.
SdkReference
.Version.ShouldBe("1.2.0");
132
importElement.
SdkReference
.MinimumVersion.ShouldBe("1.0.0");
138
importElement.
SdkReference
.Name.ShouldBe("Some.Other.Sdk");
139
importElement.
SdkReference
.Version.ShouldBe("4.0.0");
140
importElement.
SdkReference
.MinimumVersion.ShouldBe("1.0.0");
146
importElement.
SdkReference
.Name.ShouldBe("Some.Other.Sdk");
147
importElement.
SdkReference
.Version.ShouldBe("4.0.0");
148
importElement.
SdkReference
.MinimumVersion.ShouldBe("2.0.0");
152
importElement.
SdkReference
.Name.ShouldBe("Some.Other.Sdk");
153
importElement.
SdkReference
.Version.ShouldBeNull();
154
importElement.
SdkReference
.MinimumVersion.ShouldBe("2.0.0");
158
importElement.
SdkReference
.Name.ShouldBe("Some.Other.Sdk");
159
importElement.
SdkReference
.Version.ShouldBeNull();
160
importElement.
SdkReference
.MinimumVersion.ShouldBeNull();
Evaluation\ProjectSdkImplicitImport_Tests.cs (5)
530
importingElement.
SdkReference
.Name.ShouldBe(SdkName);
531
importingElement.
SdkReference
.Version.ShouldBe(expectedVersion);
532
importingElement.
SdkReference
.MinimumVersion.ShouldBe(expectedMinimumVersion);
542
import.SdkResult.SdkReference.ShouldBeSameAs(importingElement.
SdkReference
);
695
import.ImportingElement.
SdkReference
.ShouldBe(expectedSdkReferenceRaw);