How do I use Linq in MonoDevelop 2.0 on OS X?

Sam Kong picture Sam Kong · May 16, 2009 · Viewed 11k times · Source

I installed MonoDevelop 2.0 on my Mac.

I created a new Console Application.

"Hello World" program runs fine.

But I can't use Linq.

using System. doesn't show Linq option.

What should I do?

Answer

jpobst picture jpobst · May 18, 2009

You may need to right-click on your project in the solution view, do Options, Build, General, and set your Target Runtime to Mono / .Net 3.5 or bigger.

Then you can right-click references, do Edit References, and add a reference to System.Core to your project.