Skip to content

Conversation

@wtgodbe
Copy link
Member

@wtgodbe wtgodbe commented Jan 4, 2023

This is older than what's in Arcade now: https://github.com/dotnet/arcade/blob/eae015fb1c92ceef69126164b3969447d0355c08/eng/Versions.props#L45. dotnet/SDK uses the Arcade version, so we can just fall back to that.

Fixes #45882

@wtgodbe wtgodbe requested review from a team and dougbu as code owners January 4, 2023 20:42
@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jan 4, 2023
if (completionMessage.HasResult)
{
tcs.SetResult((T)completionMessage.Result);
tcs.SetResult((T)completionMessage.Result!);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CC @BrennanConroy this is to preemptively fix dotnet/installer#15151 (comment), which we'll see once we ingest the new SDK from that PR

var result = _pendingInvocations.TryAdd(invocationId, (typeof(T), connectionId, tcs, static (state, completionMessage) =>
{
var tcs = (TaskCompletionSourceWithCancellation<T>)state;
if (completionMessage.HasResult)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, Result is allowed to be null, the issue is using generics and nullability doesn't play nicely together.

@wtgodbe wtgodbe merged commit 005f935 into main Jan 4, 2023
@wtgodbe wtgodbe deleted the wtgodbe-patch-1 branch January 4, 2023 22:37
@ghost ghost added this to the 8.0-preview1 milestone Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build errors when building in source-build with the latest compiler version.

3 participants