10 instantiations of SdkResult
Microsoft.Build (10)
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (1)
94
nodeManager.SendData(request.NodeId, response ?? new
SdkResult
(sdkReference, null, null));
BackEnd\Components\SdkResolution\SdkResolverService.cs (2)
270
return new
SdkResult
(sdk, null, null);
396
sdkResult = new
SdkResult
(sdk, null, null);
BackEnd\Components\SdkResolution\SdkResult.cs (1)
104
return new
SdkResult
(translator);
BackEnd\Components\SdkResolution\SdkResultFactory.cs (6)
28
return new
SdkResult
(_sdkReference, errors, warnings);
33
return new
SdkResult
(_sdkReference, path, version, warnings);
42
return new
SdkResult
(_sdkReference, path, version, warnings, propertiesToAdd, itemsToAdd);
51
return new
SdkResult
(_sdkReference, paths, version, propertiesToAdd, itemsToAdd, warnings);
61
return new
SdkResult
(_sdkReference, path, version, warnings, propertiesToAdd, itemsToAdd, environmentVariablesToAdd);
71
return new
SdkResult
(_sdkReference, paths, version, propertiesToAdd, itemsToAdd, warnings, environmentVariablesToAdd);
51 references to SdkResult
Microsoft.Build (51)
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
"/>.
22
private readonly ConcurrentDictionary<int, ConcurrentDictionary<string, Lazy<
SdkResult
>>> _cache = new ConcurrentDictionary<int, ConcurrentDictionary<string, Lazy<
SdkResult
>>>();
38
public override
SdkResult
ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk)
40
SdkResult
result;
53
ConcurrentDictionary<string, Lazy<
SdkResult
>> cached = _cache.GetOrAdd(
55
_ => new ConcurrentDictionary<string, Lazy<
SdkResult
>>(MSBuildNameIgnoreCaseComparer.Default));
61
Lazy<
SdkResult
> resultLazy = cached.GetOrAdd(
63
key => new Lazy<
SdkResult
>(() =>
BackEnd\Components\SdkResolution\HostedSdkResolverServiceBase.cs (1)
56
public 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>
52
SdkResult
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)
69
SdkResult
response = null;
99
public 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)
32
private readonly ConcurrentDictionary<string, Lazy<
SdkResult
>> _responseCache = new ConcurrentDictionary<string, Lazy<
SdkResult
>>(MSBuildNameIgnoreCaseComparer.Default);
42
private volatile
SdkResult
_lastResponse;
61
HandleResponse(packet as
SdkResult
);
67
public override
SdkResult
ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk)
79
Lazy<
SdkResult
> sdkResultLazy = _responseCache.GetOrAdd(
81
key => new Lazy<
SdkResult
>(() =>
88
SdkResult
sdkResult = sdkResultLazy.Value;
114
private void HandleResponse(
SdkResult
response)
123
private
SdkResult
RequestSdkPathFromMainNode(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio)
BackEnd\Components\SdkResolution\SdkResolverService.cs (10)
113
public virtual
SdkResult
ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk)
154
out
SdkResult
sdkResult,
172
private
SdkResult
ResolveSdkUsingResolversWithPatternsFirst(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk)
198
SdkResult
sdkResult;
307
out
SdkResult
sdkResult,
311
List<
SdkResult
> results = new List<
SdkResult
>();
327
SdkResult
result = null;
332
result = (
SdkResult
)sdkResolver.Resolve(sdk, context, resultFactory);
362
result ??= (
SdkResult
)resultFactory.IndicateFailure([ResourceUtilities.FormatResourceStringStripCodeAndKeyword("SDKResolverReturnedNull", sdkResolver.Name)], []);
BackEnd\Components\SdkResolution\SdkResult.cs (1)
109
if (obj is
SdkResult
result &&
BackEnd\Node\OutOfProcNode.cs (2)
25
using SdkResult = Microsoft.Build.BackEnd.SdkResolution.
SdkResult
;
188
(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.ResolveSdkResponse,
SdkResult
.FactoryForDeserialization, _sdkResolverService as INodePacketHandler);
Definition\Project.cs (2)
35
using SdkResult = Microsoft.Build.BackEnd.SdkResolution.
SdkResult
;
4530
public void RecordImport(ProjectImportElement importElement, ProjectRootElement import, int versionEvaluated,
SdkResult
sdkResult)
Evaluation\Evaluator.cs (6)
36
using SdkResult = Microsoft.Build.BackEnd.SdkResolution.
SdkResult
;
113
private List<(ProjectRootElement ImportedProject, ProjectImportElement ImportingElement,
SdkResult
SdkResult)> _resolvedImports;
1418
List<ProjectRootElement> importedProjectRootElements = ExpandAndLoadImports(directoryOfImportingFile, importElement, out
var
sdkResult);
1528
private List<ProjectRootElement> ExpandAndLoadImports(string directoryOfImportingFile, ProjectImportElement importElement, out
SdkResult
sdkResult)
1712
out
SdkResult
sdkResult)
1934
private ProjectRootElement CreateProjectForSdkResult(
SdkResult
sdkResult)
Evaluation\IEvaluatorData.cs (1)
303
void RecordImport(ProjectImportElement importElement, ProjectRootElement import, int versionEvaluated,
SdkResult
sdkResult);
Evaluation\LazyItemEvaluator.EvaluatorData.cs (1)
219
public void RecordImport(ProjectImportElement importElement, ProjectRootElement import, int versionEvaluated,
SdkResult
sdkResult)
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (2)
16
using SdkResult = Microsoft.Build.BackEnd.SdkResolution.
SdkResult
;
181
public void RecordImport(ProjectImportElement importElement, ProjectRootElement import, int versionEvaluated,
SdkResult
sdkResult) => _wrapped.RecordImport(importElement, import, versionEvaluated, sdkResult);
Instance\ProjectInstance.cs (2)
35
using SdkResult = Microsoft.Build.BackEnd.SdkResolution.
SdkResult
;
1929
SdkResult
sdkResult)