Хорошо, я нашел решение. Я никогда не мог принять отключение исключений в качестве ответа. Просто кажется как-то не так ....
Похоже, что в предыдущих сборках или в предыдущих версиях вашей текущей сборки некоторые ссылки использовались извне. Несмотря на то, что ваш код уже давно отказался от этих ссылок, имена все еще, где-то загадочные, ищут в сборке.
Перейдите к файлам AssemblyInfo.cs и найдите ThemeInfo:
[assembly: ThemeInfo(
ResourceDictionaryLocation.ExternalAssembly, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries))]
Изменить первое местоположение на «Нет»:
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries))]
И держите ваши исключения включенными! Я буду публиковать этот ответ на различные вопросы подобного характера.