I am developing a Windows Forms application that needs to access and manipulate a SharePoint 2013 Site Collection, preferably via the Server-Side Object Model (SSOM). I seem to be running into a problem similar to the question "Visual studio designer in x64 doesn't work"
I cannot run the SSOM code in x86 or AnyCPU, and when I try to open a form with user controls in the forms designer after compiling to x64, I get the following error:
Could not find type '[UserControl]'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU.
It would seem the UserControl(s) are being compiled into x64, but cannot be rendered by the designer, which I suppose is running in x86. These user controls are all in the same project, and recompiling the whole project as x86 allows the forms designer to render
Is my only option to completely rebuild my entire code base each time I want to switch between form design and interfacing with SharePoint?