Register for COM interop 64 bit problem

  • Thread starter Thread starter Yoavo
  • Start date Start date
Y

Yoavo

Hi,
I wrote a c# DLL which the option "Register for COM interop" is checked.
When I build the DLL in x64 platform I get a build error:

WARNING : assembly 'mscorlib.dll' targets a different processor.
error MSB3097: File "DllTest.dll" is not a valid assembly.

Can someone please advise ?

thanks,
Yoav.
 
Yoavo said:
Hi,
I wrote a c# DLL which the option "Register for COM interop" is checked.
When I build the DLL in x64 platform I get a build error:

WARNING : assembly 'mscorlib.dll' targets a different processor.
error MSB3097: File "DllTest.dll" is not a valid assembly.

Can someone please advise ?

From what tool do you get the error?
What assemblies does your C# DLL reference? Are any of them mixed-mode
(containing native code) and therefore not bitness-neutral? This would
usually happen with assemblies built with Visual C++ and the /clr option.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top