title: Imports and references required to use LINQ
body: <p>I have never used LINQ before, and I am getting an error in an application that does use it.  This is a VB.NET (.NET 2.0) project in Visual Studio 2008.</p>
  
  <p>Here is the offending code:</p>
  
  <pre><code>Dim orderedRows = From r In resultRows Order By r.FIELDNAME Select r
  </code></pre>
  
  <p>And here is the error (names changed to something generic, but otherwise accurate):</p>
  
  <pre><code>Expression of type '1-dimensional array of 
  Company.OurLibrary.FunctionalArea.Library.StoredProcStuff.USP_MYPROC.ResultRow'
  is not queryable. Make sure you are not missing an assembly
  reference and/or namespace import for the LINQ provider.
  C:\project\filename.vb
  </code></pre>
  
  <p>So I recognize that I need to import LINQ libraries.  <a href="http://msdn.microsoft.com/en-us/library/system.linq.aspx" rel="noreferrer">This link</a> led me to add "Imports System.Linq" to the file, but that is an unresolved reference.  Based on the same link, I figured I needed to add a reference to "System.Core" to my project, but it is not listed as an available option when I try to add a reference (nor is it already checked).</p>
  
  <p>I feel sure I'm missing something basic.  Can someone point me in the right direction?</p>
  
  <p><strong>TL;DR: What do I need for LINQ to work?</strong></p>