10 instantiations of SdkResult
Microsoft.Build (10)
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (1)
94nodeManager.SendData(request.NodeId, response ?? new SdkResult(sdkReference, null, null));
BackEnd\Components\SdkResolution\SdkResolverService.cs (2)
271return new SdkResult(sdk, null, null); 397sdkResult = new SdkResult(sdk, null, null);
BackEnd\Components\SdkResolution\SdkResult.cs (1)
104return new SdkResult(translator);
BackEnd\Components\SdkResolution\SdkResultFactory.cs (6)
28return new SdkResult(_sdkReference, errors, warnings); 33return new SdkResult(_sdkReference, path, version, warnings); 42return new SdkResult(_sdkReference, path, version, warnings, propertiesToAdd, itemsToAdd); 51return new SdkResult(_sdkReference, paths, version, propertiesToAdd, itemsToAdd, warnings); 61return new SdkResult(_sdkReference, path, version, warnings, propertiesToAdd, itemsToAdd, environmentVariablesToAdd); 71return new SdkResult(_sdkReference, paths, version, propertiesToAdd, itemsToAdd, warnings, environmentVariablesToAdd);
50 references to SdkResult
Microsoft.Build (50)
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (9)
20/// Stores the cache in a set of concurrent dictionaries. The main dictionary is by build submission ID and the inner dictionary contains a case-insensitive SDK name and the cached <see cref="SdkResult"/>. 22private readonly ConcurrentDictionary<int, ConcurrentDictionary<string, Lazy<SdkResult>>> _cache = new ConcurrentDictionary<int, ConcurrentDictionary<string, Lazy<SdkResult>>>(); 38public override SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 40SdkResult result; 53ConcurrentDictionary<string, Lazy<SdkResult>> cached = _cache.GetOrAdd( 55_ => new ConcurrentDictionary<string, Lazy<SdkResult>>(MSBuildNameIgnoreCaseComparer.Default)); 61Lazy<SdkResult> resultLazy = cached.GetOrAdd( 63key => new Lazy<SdkResult>(() =>
BackEnd\Components\SdkResolution\HostedSdkResolverServiceBase.cs (1)
56public abstract SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk);
BackEnd\Components\SdkResolution\ISdkResolverService.cs (2)
51/// <returns>An <see cref="SdkResult"/> containing information about the resolved SDK. If no resolver was able to resolve it, then <see cref="Framework.SdkResult.Success"/> == false. </returns> 52SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk);
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (2)
69SdkResult response = null; 99public override SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk)
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (10)
32private readonly ConcurrentDictionary<string, Lazy<SdkResult>> _responseCache = new ConcurrentDictionary<string, Lazy<SdkResult>>(MSBuildNameIgnoreCaseComparer.Default); 42private volatile SdkResult _lastResponse; 61HandleResponse(packet as SdkResult); 67public override SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 79Lazy<SdkResult> sdkResultLazy = _responseCache.GetOrAdd( 81key => new Lazy<SdkResult>(() => 88SdkResult sdkResult = sdkResultLazy.Value; 114private void HandleResponse(SdkResult response) 123private SdkResult RequestSdkPathFromMainNode(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio)
BackEnd\Components\SdkResolution\SdkResolverService.cs (10)
114public virtual SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 155out SdkResult sdkResult, 173private SdkResult ResolveSdkUsingResolversWithPatternsFirst(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 199SdkResult sdkResult; 308out SdkResult sdkResult, 312List<SdkResult> results = new List<SdkResult>(); 328SdkResult result = null; 333result = (SdkResult)sdkResolver.Resolve(sdk, context, resultFactory); 363result ??= (SdkResult)resultFactory.IndicateFailure([ResourceUtilities.FormatResourceStringStripCodeAndKeyword("SDKResolverReturnedNull", sdkResolver.Name)], []);
BackEnd\Components\SdkResolution\SdkResult.cs (1)
109if (obj is SdkResult result &&
BackEnd\Node\OutOfProcNode.cs (2)
25using SdkResult = Microsoft.Build.BackEnd.SdkResolution.SdkResult; 188(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.ResolveSdkResponse, SdkResult.FactoryForDeserialization, _sdkResolverService as INodePacketHandler);
Definition\Project.cs (2)
35using SdkResult = Microsoft.Build.BackEnd.SdkResolution.SdkResult; 4541public void RecordImport(ProjectImportElement importElement, ProjectRootElement import, int versionEvaluated, SdkResult sdkResult)
Evaluation\Evaluator.cs (5)
36using SdkResult = Microsoft.Build.BackEnd.SdkResolution.SdkResult; 1408List<ProjectRootElement> importedProjectRootElements = ExpandAndLoadImports(directoryOfImportingFile, importElement, out var sdkResult); 1515private List<ProjectRootElement> ExpandAndLoadImports(string directoryOfImportingFile, ProjectImportElement importElement, out SdkResult sdkResult) 1699out SdkResult sdkResult) 1921private ProjectRootElement CreateProjectForSdkResult(SdkResult sdkResult)
Evaluation\IEvaluatorData.cs (1)
303void RecordImport(ProjectImportElement importElement, ProjectRootElement import, int versionEvaluated, SdkResult sdkResult);
Evaluation\LazyItemEvaluator.EvaluatorData.cs (1)
219public void RecordImport(ProjectImportElement importElement, ProjectRootElement import, int versionEvaluated, SdkResult sdkResult)
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (2)
16using SdkResult = Microsoft.Build.BackEnd.SdkResolution.SdkResult; 181public void RecordImport(ProjectImportElement importElement, ProjectRootElement import, int versionEvaluated, SdkResult sdkResult) => _wrapped.RecordImport(importElement, import, versionEvaluated, sdkResult);
Instance\ProjectInstance.cs (2)
35using SdkResult = Microsoft.Build.BackEnd.SdkResolution.SdkResult; 1944SdkResult sdkResult)