Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to reference framework 4.0 dll in project targetting 3.5 in VS2008
    primarykey
    data
    text
    <p>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.</p> <p>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.</p> <p>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:</p> <blockquote> <p>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.</p> </blockquote> <p>I tried following the answer suggested here: <a href="http://social.msdn.microsoft.com/Forums/en/clr/thread/36b1a209-55d5-4323-91dc-0919ba2e1d03" rel="nofollow">http://social.msdn.microsoft.com/Forums/en/clr/thread/36b1a209-55d5-4323-91dc-0919ba2e1d03</a>. However, I get another error message when I do that:</p> <blockquote> <p>Could not find schema information for the element 'supportedRuntime'. C:....\DynamicSql\App.config</p> </blockquote> <p>And I can't seem to figure that error out either.</p> <p>Surely there has to be SOME way for me to use this dll in VS2008??</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload