Skip to content

Fix TaskCache on net452#195

Merged
cesarblum merged 1 commit into
devfrom
cesarbs/taskcache-net452
Feb 22, 2017
Merged

Fix TaskCache on net452#195
cesarblum merged 1 commit into
devfrom
cesarbs/taskcache-net452

Conversation

@cesarblum

Copy link
Copy Markdown

To make aspnet/Identity#1111 build without the hack in the .csproj.

/// by <c>Task.CompletedTask</c>.
/// </remarks>
#if NET451
#if NET451 || NET452

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I don't really like it, but I want to get things going.

Why don't we just do Task.FromResult(0) for both targets?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you can do #if !NETSTANDARD*, so each assembly would not have own completed task instance at least on core.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

cc @rynowak @pakrym do you remember why we use Task.FromResult(0) on desktop and Task.CompletedTask on CoreCLR?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Because Task.CompletedTask is the one we want to use long term, but it's new in 4.6.

@cesarblum cesarblum merged commit ac8f5b4 into dev Feb 22, 2017
@cesarblum cesarblum deleted the cesarbs/taskcache-net452 branch February 22, 2017 23:41
@ghost ghost locked as resolved and limited conversation to collaborators May 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants