Error when adding Linq
Posted: Mon Feb 08, 2010 10:56 pm
Hello,
I have .Net version 3.5 SP1 installed and Ranorex version 2.2.1.7599.
I added the system.data.linq reference to references, and added the following using statements to my source file:
using System.Data;
using System.Data.Linq;
using System.Data.Linq.Mapping;
When I build the project I receive several errors:
Could not resolve assembly System.Data.Linq. The target framework required by this assembly (3.5) is higher than the project target framework. If this reference is required by your code, you may get compilation errors. (MSB3251)
The type or namespace name 'Linq' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) (CS0234) - C:\QA\RanorexAutomation\Gen2\SourceExtract\SourceExtract\Filter.cs:15,19
The type or namespace name 'Linq' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) (CS0234) - C:\QA\RanorexAutomation\Gen2\SourceExtract\SourceExtract\Filter.cs:16,19
The last two errors are referencing the last two using statements.
How do I go about supporting use of Linq in my project?
Thanks,
Jason
I have .Net version 3.5 SP1 installed and Ranorex version 2.2.1.7599.
I added the system.data.linq reference to references, and added the following using statements to my source file:
using System.Data;
using System.Data.Linq;
using System.Data.Linq.Mapping;
When I build the project I receive several errors:
Could not resolve assembly System.Data.Linq. The target framework required by this assembly (3.5) is higher than the project target framework. If this reference is required by your code, you may get compilation errors. (MSB3251)
The type or namespace name 'Linq' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) (CS0234) - C:\QA\RanorexAutomation\Gen2\SourceExtract\SourceExtract\Filter.cs:15,19
The type or namespace name 'Linq' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) (CS0234) - C:\QA\RanorexAutomation\Gen2\SourceExtract\SourceExtract\Filter.cs:16,19
The last two errors are referencing the last two using statements.
How do I go about supporting use of Linq in my project?
Thanks,
Jason