https://blog.csdn.net/we0704/article/details/51516709 参照以上。 解决方案中配置自定义控件的项目生成为AnyCPU或者x86。 转载于:https://www.cnblogs.com/arvinlaw/p/9728540.html