What kind of problem can cause a TypeLoadException?

前端 未结 4 1490
礼貌的吻别
礼貌的吻别 2021-01-07 13:33

I have a big and bloated software and I want to add a new GUI element to it. The GUI element was written using XAML and WPF. I created the UI element in a separate assembly,

4条回答
  •  醉酒成梦
    2021-01-07 14:20

    I finally found a reason for this bug : apparently, in some cases referencing a .exe file does not work properly. Some methods and classes loads OK but some fails. In another project, referencing this .exe file cause no problem.

    Switching to the .dll format solved all linking problems. I think this is a bug in the CLR.

提交回复
热议问题