Could not load file or assembly … An attempt was made to load a program with an incorrect format (System.BadImageFormatException)
问题 I have two projects, ProjectA and ProjectB . ProjectB is a console application, which depends on ProjectA . Yesterday, everything was working fine, but suddenly today when I run ProjectB I get this: BadImageFormatException was unhandled : Could not load file or assembly \'ProjectA, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\' or one of its dependencies. An attempt was made to load a program with an incorrect format. Both are just regular projects, with no dependencies on any other