54 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 (36)
BackEnd\SdkResolverService_Tests.cs (24)
53
SdkReference sdk = new
SdkReference
("notfound", "referencedVersion", "minimumVersion");
83
var sdk = new
SdkReference
("foo", "1.0.0", null);
112
SdkReference sdk = new
SdkReference
("1sdkName", "version1", "minimumVersion");
128
SdkReference sdk = new
SdkReference
("2sdkName", "referencedVersion", "minimumVersion");
142
SdkReference sdk = new
SdkReference
("2sdkName", "referencedVersion", "minimumVersion");
170
SdkReference sdk = new
SdkReference
("2sdkName", "referencedVersion", "minimumVersion");
192
SdkReference sdk = new
SdkReference
("1sdkName", "referencedVersion", "minimumVersion");
209
SdkReference sdk = new
SdkReference
("11sdkName", "referencedVersion", "minimumVersion");
223
SdkReference sdk = new
SdkReference
("1sdkName", "referencedVersion", "minimumVersion");
241
SdkReference sdk = new
SdkReference
(sdkName, "referencedVersion", "minimumVersion");
257
SdkReference sdk = new
SdkReference
("2sdkName", "version2", "minimumVersion");
280
SdkReference sdk = new
SdkReference
("othersdk", "1.0", "minimumVersion");
297
SdkReference sdk = new
SdkReference
("othersdk", "1.0", "minimumVersion");
315
SdkReference sdk = new
SdkReference
("notfound", "1.0", "minimumVersion");
342
SdkReference sdk = new
SdkReference
("Microsoft.NET.Sdk", version1, null);
350
var sdk = new
SdkReference
("foo", "1.0.0", null);
373
result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, new
SdkReference
("foo", "2.0.0", null), _loggingContext, new MockElementLocation("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
427
var sdk = new
SdkReference
("foo", null, null);
467
var sdk = new
SdkReference
("foo", null, null);
507
var sdk = new
SdkReference
("foo", "1.0", null);
558
var sdk = new
SdkReference
("foo", "1.0", null);
605
var sdk = new
SdkReference
("foo", "1.0.0", null);
657
new
SdkReference
("foo", "1.0.0", null),
688
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"));