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 BadImageFormatE xception.
I'm guessing the error probably has to do with compiler/linker option bits
that are used to built the assembly.
link /LTCG /CLRIMAGETYPE:IJ W /NOENTRY /DLL
/ASSEMBLYMODULE: Release/Shared.netmodul e
/ASSEMBLYMODULE: Release\Native. netmodule
/ASSEMBLYMODULE: Release\Numeric s.netmodule
/ASSEMBLYMODULE: Release\C5Colle ctions.netmodul e /OUT:Release\Com monLib.dll
Release\Common. dll ..\Src\version. res /LIBPATH:"C:\Pro gram 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 BadImageFormatE xception.
I'm guessing the error probably has to do with compiler/linker option bits
that are used to built the assembly.
link /LTCG /CLRIMAGETYPE:IJ W /NOENTRY /DLL
/ASSEMBLYMODULE: Release/Shared.netmodul e
/ASSEMBLYMODULE: Release\Native. netmodule
/ASSEMBLYMODULE: Release\Numeric s.netmodule
/ASSEMBLYMODULE: Release\C5Colle ctions.netmodul e /OUT:Release\Com monLib.dll
Release\Common. dll ..\Src\version. res /LIBPATH:"C:\Pro gram Files\Microsoft
Visual Studio 8\VC\" /LIBPATH:"../Lib/MKL"
Does anyone have any ideas of what is wrong?
-- Thanks Henry
Comment