2 types derived from SdkResolverService
Microsoft.Build (1)
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (1)
17
internal sealed class CachingSdkResolverService :
SdkResolverService
Microsoft.Build.Engine.UnitTests (1)
BackEnd\SdkResolverService_Tests.cs (1)
701
internal sealed class SdkResolverServiceTextExtension :
SdkResolverService
17 instantiations of SdkResolverService
Microsoft.Build (1)
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
31
private static readonly Lazy<SdkResolverService> InstanceLazy = new Lazy<SdkResolverService>(() => new
SdkResolverService
(), isThreadSafe: true);
Microsoft.Build.Engine.UnitTests (16)
BackEnd\SdkResolverService_Tests.cs (16)
50
var service = new
SdkResolverService
();
85
var service = new
SdkResolverService
();
109
var service = new
SdkResolverService
();
125
var service = new
SdkResolverService
();
189
var service = new
SdkResolverService
();
206
var service = new
SdkResolverService
();
221
var service = new
SdkResolverService
();
238
var service = new
SdkResolverService
();
252
var service = new
SdkResolverService
();
277
var service = new
SdkResolverService
();
294
var service = new
SdkResolverService
();
312
var service = new
SdkResolverService
();
446
var service = new
SdkResolverService
();
483
var service = new
SdkResolverService
();
530
var service = new
SdkResolverService
();
576
var service = new
SdkResolverService
();
35 references to SdkResolverService
Microsoft.Build (11)
BackEnd\Components\SdkResolution\CachingSdkResolverLoader.cs (1)
48
/// <see cref="
SdkResolverService
" /> instance.
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (2)
75
!
SdkResolverService
.IsReferenceSameVersion(sdk, result.SdkReference.Version) &&
76
!
SdkResolverService
.IsReferenceSameVersion(sdk, result.Version))
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (2)
20
/// and can be overridden for different contexts. This service calls the <see cref="
SdkResolverService
"/> to do any actual SDK resolution
21
/// because the <see cref="
SdkResolverService
"/> is used for stand-alone evaluations where there is no build context available so caching
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (1)
85
if (sdkResult.Version != null && !
SdkResolverService
.IsReferenceSameVersion(sdk, sdkResult.Version))
BackEnd\Components\SdkResolution\SdkResolverService.cs (4)
31
private static readonly Lazy<
SdkResolverService
> InstanceLazy = new Lazy<
SdkResolverService
>(() => new SdkResolverService(), isThreadSafe: true);
74
/// Gets the current instance of <see cref="
SdkResolverService
"/> for this process.
76
public static
SdkResolverService
Instance => InstanceLazy.Value;
Construction\Solution\SolutionProjectGenerator.cs (1)
186
_sdkResolverService = sdkResolverService ??
SdkResolverService
.Instance;
Microsoft.Build.Engine.UnitTests (24)
BackEnd\SdkResolverService_Tests.cs (18)
50
var
service = new SdkResolverService();
85
var
service = new SdkResolverService();
109
var
service = new SdkResolverService();
125
var
service = new SdkResolverService();
139
internal string TryResolveSdk(
SdkResolverService
service)
189
var
service = new SdkResolverService();
206
var
service = new SdkResolverService();
221
var
service = new SdkResolverService();
238
var
service = new SdkResolverService();
252
var
service = new SdkResolverService();
277
var
service = new SdkResolverService();
294
var
service = new SdkResolverService();
312
var
service = new SdkResolverService();
344
SdkResolverService
.IsReferenceSameVersion(sdk, version2).ShouldBe(expected);
446
var
service = new SdkResolverService();
483
var
service = new SdkResolverService();
530
var
service = new SdkResolverService();
576
var
service = new SdkResolverService();
BackEnd\SdkResultOutOfProc_Tests.cs (2)
268
var
sdkService = (
SdkResolverService
)context.SdkResolverService;
Definition\ProjectEvaluationContext_Tests.cs (2)
52
var
sdkService = (
SdkResolverService
)context.SdkResolverService;
InternalEngineHelpers.cs (2)
30
var
sdkService = (
SdkResolverService
)context.SdkResolverService;