I have a C # solution, two projects, winforms and dll, where the winforms project refers to a DLL, and I installed everything I know in the project in version 2.0, but I still get this FileLoadException on startup:
The mixed-mode compilation is built against the runtime version 'v2.0.50727' and cannot be loaded at 4.0 time without additional configuration information.
Settings I configured:
- Properties The target structure is the .NET framework 2.0.
- All links referenced by project links are built with .NET 2.0
- All flags in the configuration manager indicating whether projects should be created will be checked.
I also tried to clear the solution by deleting the \ bin \ map project, but when the solution is recompiled and launched, an exception is still thrown. On my machine, I have Visual Studio 2010 Ultimate with .NET 4.0 and .NET 3.5 SP1 installed.
I must have skipped the setting that throws this exception, but I don't know about it, does anyone know? I just want it to use .NET 2.0, not .NET 4.0.
source share