How can I load an older version of a .NET assembly?

后端 未结 5 1020
梦如初夏
梦如初夏 2021-01-05 07:28

I have a WPF/C# application that references .NET 4.0 assemblies. However, within the application is a text editor that needs to display C# intellisense tied to .NET 3.5 asse

5条回答
  •  悲哀的现实
    2021-01-05 08:03

    You can use the AssemblyBinding property in your app.config or web.config, whichever is appropriate.

    For instance, I'm interfacing with Matlab, so I need this...

    
        
            
                
                
            
        
    

    Because the Matlab engine I work with is compiled (some crazy how) on a machine using a different copy of the runtime.

    You should be able to modify this code to suit your needs.

提交回复
热议问题