Hello all,
I'm trying to reference a PCL whose target framework is 4.5 from a console app. Specifically, the PCL is set to Profile49, which translates to .Net 4.5 + WP8. As soon as I instantiate any type from the PCL in my console app, I get a BadImageFormatException with this message: "Index not found. (Exception from HRESULT: 0x80131124)".
If I bump the PCL down to any profile whose target framework is 4.0, everything works fine. Also, any other profile that targets 4.5 results in the same error. I don't see why this shouldn't work since the console app itself targets framework 4.5.
This behavior is trivial to reproduce. Just create a solution with a console project, and then add a PCL set to .NET4.5 + WP8. Then reference the PCL from the console app and instantiate the default class1.cs.
Any advice on working around this is much appreciated!
Cheers,
Mike