I
ignhenry
I have mixed-mode multi-file assembly of several netmodules and a dll. All
are generated using c# compiler, vc++ compiler and vc++ linker from command
prompt. I can browse the content of the assembly from vs.net ide and roeder's
..net reflector, but when I run a c# console project that references to the
dll, it throws BadImageFormatException.
I'm guessing the error probably has to do with compiler/linker option bits
that are used to built the assembly.
link /LTCG /CLRIMAGETYPE:IJW /NOENTRY /DLL
/ASSEMBLYMODULE:Release/Shared.netmodule
/ASSEMBLYMODULE:Release\Native.netmodule
/ASSEMBLYMODULE:Release\Numerics.netmodule
/ASSEMBLYMODULE:Release\C5Collections.netmodule /OUT:Release\CommonLib.dll
Release\Common.dll ..\Src\version.res /LIBPATH:"C:\Program Files\Microsoft
Visual Studio 8\VC\" /LIBPATH:"../Lib/MKL"
Does anyone have any ideas of what is wrong?
-- Thanks Henry
are generated using c# compiler, vc++ compiler and vc++ linker from command
prompt. I can browse the content of the assembly from vs.net ide and roeder's
..net reflector, but when I run a c# console project that references to the
dll, it throws BadImageFormatException.
I'm guessing the error probably has to do with compiler/linker option bits
that are used to built the assembly.
link /LTCG /CLRIMAGETYPE:IJW /NOENTRY /DLL
/ASSEMBLYMODULE:Release/Shared.netmodule
/ASSEMBLYMODULE:Release\Native.netmodule
/ASSEMBLYMODULE:Release\Numerics.netmodule
/ASSEMBLYMODULE:Release\C5Collections.netmodule /OUT:Release\CommonLib.dll
Release\Common.dll ..\Src\version.res /LIBPATH:"C:\Program Files\Microsoft
Visual Studio 8\VC\" /LIBPATH:"../Lib/MKL"
Does anyone have any ideas of what is wrong?
-- Thanks Henry