Compiler complains about ‘Linq’
I developed an application using VS 2008 and build on the box and everything was good. Now we were implementing the code compile in the CI environment. Where I installed .Net framework 3.5.
Now when I try to compile the code in Ci environment I get an error ‘Linq’ is missing. I checked assemblies and found System.Xml.Linq is in the GAC. I even added that as a reference to in the compile task. That didn’t resolve the problem. After some research I found out that, it looks like System.Linq is in System.Core.dll and even though it is in the GAC, we must explicitly include that as a reference during compile. Once I added that as a part of reference, the Linq error went away.
So, be careful on this.