Bug 5377 - MonoDevelop does not suggest System.Linq namespace
Summary: MonoDevelop does not suggest System.Linq namespace
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 3.0.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks: 5622
  Show dependency tree
 
Reported: 2012-05-28 18:20 UTC by Joseph Hill
Modified: 2015-07-02 10:32 UTC (History)
1 user (show)

Tags:
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 Developer Community or GitHub 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:
Status:
RESOLVED NOT_ON_ROADMAP

Description Joseph Hill 2012-05-28 18:20:12 UTC
In MonoDevelop 3.0.2, create a new C# console project.

On the first line of a new C# file, type:
using System.

System.Linq does not appear in the suggestion list.

However, typing the following compiles okay:
using System.Linq;
Comment 2 Mike Krüger 2012-05-29 02:55:18 UTC
It's a known issue - the project system should give the reference.

Known work around: Manually adding the system.core assembly.
Comment 3 Mikayla Hutchinson [MSFT] 2012-05-29 12:09:43 UTC
Not convinced this is a bug. If the project doesn't have a reference to System.Core, then you can't reference types from System.Core. This is consistent.

The reason the compile succeeds is that MD implicitly adds a System.Core reference in order for certain C#3+ features to work correctly.
Comment 4 Lluis Sanchez 2015-07-02 10:32:36 UTC
Closing.