多年来,我一直遵循MS关于如何编写自定义异常类的最佳实践(甚至不记得它是最初由FxCop强制执行的,还是由我阅读的一篇文章执行的),并以以下方式编写了类:using System.Runtime.SerializationSystem.Runtime.Serialization.SerializationInfo in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application
由于使用C# 6(评估/试用),我很难将SmartAssembly WPF项目中的所有依赖项绑定到一个单独的exe中,因为MahApps.Metro。它抛出带有内部异常System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.InteractivityThe system cannot find the file specified.的异常。当我从Visual 2012或从Debug/ <e