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)
266
return new
SdkResult
(sdk, null, null);
409
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)
111
public virtual
SdkResult
ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk)
150
out
SdkResult
sdkResult,
167
private
SdkResult
ResolveSdkUsingResolversWithPatternsFirst(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk)
193
SdkResult
sdkResult;
320
out
SdkResult
sdkResult,
324
List<
SdkResult
> results = new List<
SdkResult
>();
340
SdkResult
result = null;
345
result = (
SdkResult
)sdkResolver.Resolve(sdk, context, resultFactory);
375
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)
26
using SdkResult = Microsoft.Build.BackEnd.SdkResolution.
SdkResult
;
189
(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.ResolveSdkResponse,
SdkResult
.FactoryForDeserialization, _sdkResolverService as INodePacketHandler);
Definition\Project.cs (2)
33
using SdkResult = Microsoft.Build.BackEnd.SdkResolution.
SdkResult
;
4402
public void RecordImport(ProjectImportElement importElement, ProjectRootElement import, int versionEvaluated,
SdkResult
sdkResult)
Evaluation\Evaluator.cs (6)
36
using SdkResult = Microsoft.Build.BackEnd.SdkResolution.
SdkResult
;
126
private List<(ProjectRootElement ImportedProject, ProjectImportElement ImportingElement,
SdkResult
SdkResult)> _resolvedImports;
1484
List<ProjectRootElement> importedProjectRootElements = ExpandAndLoadImports(directoryOfImportingFile, importElement, out
var
sdkResult);
1594
private List<ProjectRootElement> ExpandAndLoadImports(string directoryOfImportingFile, ProjectImportElement importElement, out
SdkResult
sdkResult)
1778
out
SdkResult
sdkResult)
2000
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
;
1980
SdkResult
sdkResult)