System.BadImageFormatException occurred when build in Release Mode
问题 I am referencing an exe file in a dll. When run in DEBUG mode everything runs fine but when run in Release mode below exception is thrown System.BadImageFormatException occurred HResult=-2147024885 Message=Could not load file or assembly 'Presensoft.InlineMarker, 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. Source=Presensoft.ApplicationServer FileName=Presensoft.InlineMarker, Version=1.0.0.0,