Bug 17581 - Task.FromResult missing
Summary: Task.FromResult missing
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: 3.2.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2014-02-03 18:26 UTC by atrauzzi
Modified: 2014-02-03 22:59 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description atrauzzi 2014-02-03 18:26:44 UTC
I'm currently using mono 3.2.6-5 on Ubuntu via https://launchpad.net/~keks9n/+archive/monodevelop-latest

I've been reading through some tutorials and noticed the use of Task.FromResult(), but when I go to use it, it's not available.  It appears to be in the mono source code, but for some reason it's not working and Monodevelop gives me compile errors when I try to use it.  When I browse the assembly in Monodevelop, the method doesn't appear to be part of the class either.
Comment 1 Mikayla Hutchinson [MSFT] 2014-02-03 22:59:43 UTC
Make sure your project is targeting the 4.5 framework, not the 4.0 framework.