/// <inheritdoc/> public PlatformDetectorResult Detect(RepositoryContext context) { PlatformDetectorResult detectionResult; if (TryGetExplicitVersion(out var explicitVersion)) { detectionResult = new PlatformDetectorResult { Platform = DotNetCoreConstants.PlatformName, PlatformVersion = explicitVersion, }; } else { detectionResult = _detector.Detect(context); } if (detectionResult == null) { return(null); } var version = ResolveVersion(detectionResult.PlatformVersion); detectionResult.PlatformVersion = version; return(detectionResult); }
/// <inheritdoc/> public PlatformDetectorResult Detect(RepositoryContext context) { return(_detector.Detect(context)); }