Is there a way to reference multiple frameworks in the same project?
I'm currently working on a project that I now notice uses 2 different frameworks. I recently installed a new SDK that is based on 4.0 and changed my target framework from 3.5.
I attempted to run my code and now get the following:
An unhandled exception of type 'System.IO.FileLoadException' occurred in Seagull.BarTender.Print.dll
Additional information: 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.
Can someone please help with this? Do I need to reference 2 frameworks?
You would need to build the two parts as separate projects within the same solution.
I contacted the SDK supplier and they recommended adding the following to my app.config file
that seem to have fixed the issue as the error went away!
I'm still a beginner having only written code in VBA and VB6...I have not gotten to the muti-project solutions yet, but i'm heading there.