52 references to SdkReference
Microsoft.Build (6)
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (1)
72
SdkReference sdkReference = new
SdkReference
(request.Name, request.Version, request.MinimumVersion);
BackEnd\Components\SdkResolution\TranslationHelpers.cs (1)
33
sdkReference = new
SdkReference
(name, version, minimumVersion);
Construction\ProjectImportElement.cs (1)
193
SdkReference sdk = new
SdkReference
(name, version, minimumVersion);
Construction\ProjectRootElement.cs (1)
1894
var referencedSdk = new
SdkReference
(
Evaluation\Evaluator.cs (1)
1779
sdkReference = new
SdkReference
(
Evaluation\ProjectParser.cs (1)
463
sdk = new
SdkReference
(
Microsoft.Build.Engine.UnitTests (34)
BackEnd\SdkResolverService_Tests.cs (22)
55
SdkReference sdk = new
SdkReference
("notfound", "referencedVersion", "minimumVersion");
85
var sdk = new
SdkReference
("foo", "1.0.0", null);
112
SdkReference sdk = new
SdkReference
("1sdkName", "version1", "minimumVersion");
127
SdkReference sdk = new
SdkReference
("2sdkName", "referencedVersion", "minimumVersion");
144
SdkReference sdk = new
SdkReference
("1sdkName", "referencedVersion", "minimumVersion");
160
SdkReference sdk = new
SdkReference
("11sdkName", "referencedVersion", "minimumVersion");
173
SdkReference sdk = new
SdkReference
("1sdkName", "referencedVersion", "minimumVersion");
190
SdkReference sdk = new
SdkReference
(sdkName, "referencedVersion", "minimumVersion");
205
SdkReference sdk = new
SdkReference
("2sdkName", "version2", "minimumVersion");
227
SdkReference sdk = new
SdkReference
("othersdk", "1.0", "minimumVersion");
243
SdkReference sdk = new
SdkReference
("othersdk", "1.0", "minimumVersion");
260
SdkReference sdk = new
SdkReference
("notfound", "1.0", "minimumVersion");
287
SdkReference sdk = new
SdkReference
("Microsoft.NET.Sdk", version1, null);
295
var sdk = new
SdkReference
("foo", "1.0.0", null);
318
result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, new
SdkReference
("foo", "2.0.0", null), _loggingContext, new MockElementLocation("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
372
var sdk = new
SdkReference
("foo", null, null);
411
var sdk = new
SdkReference
("foo", null, null);
450
var sdk = new
SdkReference
("foo", "1.0", null);
500
var sdk = new
SdkReference
("foo", "1.0", null);
546
var sdk = new
SdkReference
("foo", "1.0.0", null);
598
new
SdkReference
("foo", "1.0.0", null),
629
new
SdkReference
("foo", "1.0.0", null),
BackEnd\SdkResultOutOfProc_Tests.cs (1)
251
new
SdkReference
("TestSdk", null, null),
Definition\ProjectEvaluationContext_Tests.cs (2)
37
{"foo", new SdkResult(new
SdkReference
("foo", "1.0.0", null), "path", "1.0.0", null) },
38
{"bar", new SdkResult(new
SdkReference
("bar", "1.0.0", null), "path", "1.0.0", null) }
Evaluation\Preprocessor_Tests.cs (1)
959
new
SdkReference
("TestPropsAndItemsFromResolverSdk", null, null),
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
681
var expectedSdkReferenceRaw = new
SdkReference
(
686
var expectedSdkReference = new
SdkReference
(
Evaluation\SdkResultEvaluation_Tests.cs (6)
117
new
SdkReference
("TestPropsAndItemsFromResolverSdk", null, null),
157
new
SdkReference
("TestPropsAndItemsFromResolverSdk", null, null),
164
new
SdkReference
("TestPropsAndItemsFromResolverSdk", null, null),
251
new
SdkReference
("TestPropsAndItemsFromResolverSdk", null, null),
353
new
SdkReference
("TestPropsAndItemsFromResolverSdk", null, null),
435
new
SdkReference
("TestSpecialCharactersFromSdkResolver", null, null),
Microsoft.Build.Framework (3)
Sdk\SdkReference.cs (3)
101
sdkReference = new
SdkReference
(parts[0], null, null);
108
? new
SdkReference
(parts[0], null, parts[1].Substring(4))
109
: new
SdkReference
(parts[0], parts[1], null);
Microsoft.Build.Framework.UnitTests (9)
SdkReference_Tests.cs (9)
83
SdkReference sdk = new
SdkReference
("Name", "Version", "Min");
85
sdk.ShouldBe(new
SdkReference
("Name", "Version", "Min"));
86
sdk.ShouldNotBe(new
SdkReference
("Name", "Version", null));
87
sdk.ShouldNotBe(new
SdkReference
("Name", null, "Min"));
88
sdk.ShouldNotBe(new
SdkReference
("Name", null, null));
89
sdk.ShouldBe(new
SdkReference
("Name", "version", "Min"));
90
sdk.ShouldBe(new
SdkReference
("name", "Version", "Min"));
91
sdk.ShouldBe(new
SdkReference
("Name", "Version", "min"));
92
sdk.ShouldNotBe(new
SdkReference
("Name2", "Version", "Min"));