Upgrading to Framework 4.0 and then downgraded, now can't find Linq namespace?
I just updated VS2008 to VS2010. In this process, I allowed him to update my DLL to 4.0. I decided it wasn't a good idea and now I have rolled back.
Everything works fine in VS2010, but when it hits my CI server (CruiseControl.Net) I get the error:
The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?
3.5 is on the server and other projects that use 3.5 build fine, so I don't think this is a map issue.
Anyone have any hints?
a source to share
I have a link to System.Core, but it turned out that for one of my projects, when I downgraded, it didn't add this bit back to the project file:
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
<Private>False</Private>
</Reference>
The key part is RequiredTargetFramework. I was related to this because not only Linq was not found, but also the Func <> and Extension method attributes.
It was only 3.5 pieces that were missing.
a source to share