C# 重新命名程序集,应用程序赢得';t构建

C# 重新命名程序集,应用程序赢得';t构建,c#,wpf,xaml,C#,Wpf,Xaml,我将我的WPF应用程序的程序集从DBce_TEST2重命名为AMS,然后尝试构建它,看看会发生什么。我运行了它,由于明显的原因它不会构建,但现在在将其重命名回DBce_TEST2后,我得到了以下错误: Managed Debugging Assistant 'BindingFailure' has detected a problem in 'G:\C# Projects\Asset Management System\DBce_TEST2\bin\Debug\DBce_TEST2.vshost

我将我的WPF应用程序的程序集从DBce_TEST2重命名为AMS,然后尝试构建它,看看会发生什么。我运行了它,由于明显的原因它不会构建,但现在在将其重命名回DBce_TEST2后,我得到了以下错误:

Managed Debugging Assistant 'BindingFailure' has detected a problem in 'G:\C# Projects\Asset Management System\DBce_TEST2\bin\Debug\DBce_TEST2.vshost.exe'.

Additional Information: The assembly with display name 'AMS' failed to load in the 'Load' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'AMS' or one of its dependencies. The system cannot find the file specified.

这个错误可能是可疑的。使用Fusion log viewer了解出了什么问题


把它弄明白了。再次将程序集重命名为一些随机文本,尝试运行它,然后重命名回原始程序集名称,错误消失。我猜一些生成的文件被VisualStudio弄乱了一点,这就解决了这个问题