R – Converted project .net 2.0 to 3.5, where are the extension methods

.net-2.0.net-3.5project

I've recently converted an app from .net 2.0 to 3.5 but I don't see any extension methods… what am I doing wrong? Or what else should I do besides changing the target framework from 2.0 to 3.5 in project settings?

Best Answer

Extension methods appear based on the imported namespaces try adding

using System.Linq;

to the top of your files. As Jon says you'll also need add a reference to System.Core.dll assembly.