CorFlags.exe, System.Data.SQLite.dll and BadImageFormatException

前端 未结 2 1599
栀梦
栀梦 2021-01-13 14:56

Running CorFlags.exe against System.Data.SQLite.dll from http://sqlite.phxsoftware.com/ produces the following output.

Version   : v2.0.50727
CL         


        
2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-13 15:36

    The System.Data.SQLite.dll file you are using is a mixed-mode assembly, which means it is not a pure .NET code (see also the “ILONLY : 0” flag), it contains also unmanaged machine code, which cannot be “Any CPU”. So, as the DLL contains 32-bit native code, it can be loaded only into 32-bit process, otherwise a BadImageFormatException occurs.

提交回复
热议问题