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