x86 TargetPlatform with XBAPs

╄→гoц情女王★ 提交于 2020-01-05 08:32:44

问题


I've got a XAML Browser Hosted Application (XBAP) project that has a dependency on another project that is x86 only. All sorts of hell breaks loose at runtime (with respect to grabbing the DLLs) if I leave the target platform as "Any CPU". However, if I switch the XBAP project to target x86, I get the following compile time error:

Error 7 - Cannot build a platform-specific XAML Browser Application. If HostInBrowser property is set to 'True', either do not set the PlatformTarget property or set it to 'AnyCpu'.

Is there a work around for this? Or am I going to have to figure out some horrific multi-process + IPC solution for this*?

*The mere thought of which fills me with terror


回答1:


If your dependent .dll don't have any links to win32 native dll's you could dissasemble it in Reflector and recompile it as Any CPU, or get an Any CPU version if possible. If it has win32 links, then I think you have to split it into multi procs as you suggest.



来源:https://stackoverflow.com/questions/1633469/x86-targetplatform-with-xbaps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!