There are many questions about "Mixed mode assembly is built against version .. of the runtime and cannot be loaded in the 4.0 runtime",
E.g. Mixed mode assembly is built against version 'v1.1.4322'
but I don't see any discussion of how to find out WHICH referenced dll is the mixed mode assembly that is causing the problem.
This is happening in an upgrade of an old .NET 3.5 WinForms + XNA desktop app with MANY source files, that references a variety of 3rd-party dlls. I can't just remove them one at a time, because then the app won't build at all.
NOTE: the project that gives the "Mixed mode .." error during build is a class library, written in VB.
(Upgrading to .NET 4.5.2, as a step towards moving from 32-bit to 64-bit.)
I haven't successfully gotten rid of the error message, even after adding useLegacyV2RuntimeActivationPolicy="true"
, but rather than expend more time figuring out why that doesn't work, I'd like to know which dll it is - I suspect I will want to replace the offending library with some newer solution.