CS1685 Warning causes a CS0433 error when targeting 3.5 in VS2010
- by Adam Driscoll
I have a 2010 project that is targeting .NET v3.5. It was working fine until I started to mess with configurations a bit and now I cannot figure out what I'm doing wrong. The project doesn't have ANY references added. It won't even let me add a reference to System.Core as it is added by the 'build system'.
warning CS1685: The predefined type 'System.Func' is defined in
multiple assemblies in the global
alias; using definition from
'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'
IFilter.cs(82,49): error CS0433: The type 'System.Func'
exists in both 'c:\Program Files
(x86)\Reference
Assemblies\Microsoft\Framework\v3.5\System.Core.dll'
and
'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'
Looks like something is grabbing onto 4.0 but I'm not quite sure how to fix it. Any one else run into this?