We have a large WinForms application that we will not be re-writing (in WPF for example) any time soon. Microsoft continues to actively support Winforms.
We generally have our Winforms build configuration set to AnyCPU for development, and the MSBuild process that deploys it builds it as 64 bit. The development configuration is set to AnyCPU because of the well-known problem that the Visual Designer of Winforms fails to work if the app is built as 64 bit. Switching back and forth to do UX design is not too painful. However, we have now hit an issue where we want to include a NuGet package for Microsoft.CognitiveServices.Speech in our WinForms app. This assemblies requires 64 bit, and you will get a compiler error if the app is set to AnyCPU. This removes our ability to switch over to AnyCPU for UX design.
One work-around we could do is that we have an older version of Microsoft.CogitiveServices.Speech that does allow AnyCPU, but that version is no longer available via NuGet, so we would have to check the package into source control (yuck).
Is there anything I can do to allow a WinForms app to remain set to AnyCPU, but reference an assembly that apparently demands 64 bit only?