【Wpf】【debug】Exception has been thrown by the target of an invocation.

今天遇到一个非常郁闷的问题,程序看不出任何错误

运行时报

Exception has been thrown by the target of an invocation.

导致的原因是

x86的库,调用了x64的库

修改方法:

把库项目属性中,目标系统平台改为 x86

原文地址:https://www.cnblogs.com/ningth/p/1716325.html