Project reference work-around .net 4.5 and .net 3.5

后端 未结 1 1466
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-10 21:12

In continue for this thread:
Mixing .NET 3.5 with 4/4.5 assemblies in the same solution/project

I found a workaround:
http://social.msdn.microsoft.com/Foru

相关标签:
1条回答
  • 2020-12-10 22:08

    Your configuration file will load .NET 2.0 runtime and it would fail at some point loading .NET4.5 components. You really want your app to run in .NET4.5 runtime and be able to load 3.5 components. You should try following config file.

    <configuration>
        <startup useLegacyV2RuntimeActivationPolicy="true">
            <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
        </startup>
    </configuration>
    
    0 讨论(0)
提交回复
热议问题