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