This is not necessarily the answer, but the steps are too complicated to add a comment.
Refresh
A few more things to try:
First try running visual studio in safe mode . Make sure the problem is not caused by the plugin.
- See if there is a problem on other machines with this project.
- Reinstall 3.5.NET framework (it seems that you are using v3.5)
- See what's in the GAC: At the sstudio command prompt, run
gacutil /l > C:\gac.txt . Check the contents of this file for System.Core. For .NET 3.5, I have one System.Core that looks like this:
System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL
I have one more for v4.0. I also have .NET 4.5 installed. For some reason, this did not add a new System.Core.dll to my machine (according to MSDN, System.Core.dll still contains System.LINQ in version 4.5).
Please open a project and show us MSBUILD. You will search for System.Core, which is an assembly containing System.LINQ.
Right-click the project> Select "Unload Project"> Right-click the project again this time, select "Change (project_name)".
Now look for links to System.Core. How many do you have? It looks like this:
<Reference Include="System.Core" />
Remove duplicate links to System.Core.
Reload the project. If the problem still exists ...
remove the link to System.Core. Re-add the link through the Assemblies tab> Structure (or the .NET tab, which I think before VS 2012).
Recheck MSBuild from step 1, and if the problem still exists, send the MSBuild links along with the PATH and RUNTIME VERSION versions available in the build properties in the links folder.
source share