Wednesday, 7 August 2013

Reflecting a WinRT executable from a .Net 4.x App

Reflecting a WinRT executable from a .Net 4.x App

In a console application; If I execute:
Assembly.LoadFrom(@"c:\...\MyWinRTApp.exe")
I get:
System.BadImageFormatException occurred
HResult=-2147024885
Message=Could not load file or assembly 'file:///C:\_...\MyWinRTApp.exe'
or one of its dependencies. An attempt was made to load a program with an
incorrect format.
Source=mscorlib
Is there any way around this?

No comments:

Post a Comment