Could not load file or assembly 'xxx' or one of its dependencies. An attempt was made to load a program with an incorrect format

前端 未结 9 652
情歌与酒
情歌与酒 2020-11-27 12:29

I just checked out a revision from Subversion to a new folder. Opened the solution and I get this when run:

Could not load file or assembly \'xxxx\' or one

9条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-27 13:13

    Sounds like one part of the project is being built for x86-only while the rest is being built for any CPU/x64. This bit me, too. Are you running an x64 (or uh... IA64)?

    Check the project properties and make sure everything is being built for "Any CPU". f you're in Visual Studio, you can check for everything by going to the "x86" or "Any CPU" menu (next to the "Debug"/"Release" menu) on the toolbar at the top of the screen and clicking "Configuration Manager..."

提交回复
热议问题