I am using the ArcGis functionality in a class library that Is implemented as a prism module. When I build the module, the client32 and/or client64 folders do not get copied into the build output as they do if I create a WPF application and reference the ESRI libraries. With these dependencies missing, the application crashes. What are your recommendations for bringing these folders into the build output for class libraries? I can do some post install step and copy them in if needed.
Sounds like there's a specific scenario where the build task isn't detecting Any CPU correctly (it should deploy both if you have any cpu on with prefer32bit off).
Any chance you could share a project that reproduces this issue?