简体   繁体   中英

Reflection.ReflectionTypeLoadException for MahApps DLL

Today I've had a curious issue. After making a realse (I did not change any references), i get an Reflection.ReflectionTypeLoadException which says, that it coul don't load a type in MahApps.Metro .

The curious thing is, that I have no assembly which references MahApps .

What else could cause this issue? I've debug and searched a lot, but could not find anything.

EDIT

Sometimes the exception occurse only the first time I do some action. If i open a windows the second time, everything works.

Thank you all!

You can use a tool like ILSpy find where the dependency is coming from. Just inspect each assembly in your bin folder until you find the one that references MahApps.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM