I have a dll created in VS2010 using the 4.0 framework (yes it's the full 4.0, NOT the client profile). I would like to reference it in a VS2008 project (meaning I can't re-target the referencing project to 4.0 even if I wanted to) and upgrading that project to VS2010 is not an option.
I understand why there are issues with referencing 4.0 'projects' in 3.5 projects, but I don't understand why I should have a problem referencing a 4.0 dll in a 3.5 project. And for all I know this may not be the issue, but I can't seem to think of what else it could be.
I am trying to use Fasterflect (http://fasterflect.codeplex.com/) which relies heavily on 4.0 features in my 3.5 project (and again, my company is not ready to shell out the money for VS2010 so I can't change that). Everything seemed to be going okay at first until I tried to compile then errors about the Fasterflect assembly not being signed popped up. So I downloaded the actual source code, signed it, recompiled it, and referenced my newly signed assembly. The problem is that now it displays the caution symbol and says:
Resolved file has a bad image, no metadata, or is otherwise inaccessible. Could not load file or assembly 'C:....\Fasterflect.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
I tried following the answer suggested here: http://social.msdn.microsoft.com/Forums/en/clr/thread/36b1a209-55d5-4323-91dc-0919ba2e1d03. However, I get another error message when I do that:
Could not find schema information for the element 'supportedRuntime'. C:....\DynamicSql\App.config
And I can't seem to figure that error out either.
Surely there has to be SOME way for me to use this dll in VS2008??