The located assembly's manifest definition does not match the assembly reference

前端 未结 30 2056
北恋
北恋 2020-11-22 01:41

I am trying to run some unit tests in a C# Windows Forms application (Visual Studio 2005), and I get the following error:

System.IO.FileLoadException: Co

30条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 02:01

    I am going to blow everyone's mind right now . . .

    Delete all the references from your .config file, and then run this command from the NuGet Package Manager console:

    Get-Project -All | Add-BindingRedirect
    

提交回复
热议问题