My project setup looks like this:
My application (4.0) --> My class library (4.0) --> 3rd party library (2.0.50727)
My application's app.config looks like this:
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>
Yet when trying to launch the application, I receive the dreaded FileLoadException:
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
The respective third-party library is "System.Data.SQLite" v1.0.60.0. Is it necessary to enable the "useLegacyV2RuntimeActivationPolicy" attribute for my class library as well? How would I do that?
Thanks in advance for your help and best regards