Search code examples
wpfvisual-studioxamlworkflow-foundation-4

How can I use types from a third party x64 dll in xamlx designer?


The problem is that VS2010sp1 is a 32bit app and won't load 64bit assemblies.

I have made custom activities that reference types as InArgument/OutArguments from a 64bit 3rd party dll. (Or more generally, I have designer components that involve types from a 64bit dll that should be placed on a VS hosted WPF designer)

These components cannot be then used in VS xaml/xamlx designers because VS is a 32bit app. How can this limitation be overcome, without asking the supplier to rebuild for AnyCPU?


Solution

  • I don't think you can. If something is designed to be hosted in a 64 bit application that is what it needs. If your app is 32 bits it can't host that assembly. So your only option is to use two applications and communicate between them. But as you are suggesting you need a WPF component from that assembly there is AFAIK no way to do so.