Linq

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

I need to use Linq but I have problems.
I have VS 2008 installed but I haven't done it myself.
When I click on add references and scroll down to System.Core I noticed it's
greyed out so I can't add this as a reference
so I wonder if the one who installed VS2008 didn't include to use Link is
that possible.

//Tony
 
I need to use Linq but I have problems.
I have VS 2008 installed but I haven't done it myself.
When I click on add references and scroll down to System.Core I noticed it's
greyed out so I can't add this as a reference
so I wonder if the one who installed VS2008 didn't include to use Link is
that possible.

//Tony

When you created your project, what version of the .Net framework did
you set as the target? Some assemblies, like System.Core, cannot be
referenced from a .Net 2.0 targeted project and are, thus, grayed out.

Chris
 
Tony said:
I need to use Linq but I have problems.
I have VS 2008 installed but I haven't done it myself.
When I click on add references and scroll down to System.Core I noticed
it's greyed out so I can't add this as a reference
so I wonder if the one who installed VS2008 didn't include to use Link is
that possible.

No, Linq is alwas included with VS2008. It is more probable that the
Project in which you are working has been configured to use an earlier
version of the Framework (right-click on the project in Solution Explorer,
select Properties and look for a dropdown with a list of framework versions
in one of the property pages). The System.Core reference will only be
available if the project is configured to use the Framework 3.5.
 
Back
Top