What 'additional configuration' is necessary to reference a .NET 2.0 mixed mode assembly in a .NET 4.0 project?

后端 未结 17 1271
死守一世寂寞
死守一世寂寞 2020-11-22 08:20

I have a project in which I\'d like to use some of the .NET 4.0 features but a core requirement is that I can use the System.Data.SQLite framework which is compiled against

17条回答
  •  忘掉有多难
    2020-11-22 09:15

    Was able to solve the issue by adding "startup" element with "useLegacyV2RuntimeActivationPolicy" attribute set.

    
        
        
    
    

    But had to place it as the first child element of configuration tag in App.config for it to take effect.

    
      
        
          
          
        
      ......
    ....
    

提交回复
热议问题