|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Register for COM interop 64 bit problemHi,
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 wrote:
> Hi, Normally you would build a .NET DLL with "AnyCPU" as the target. What > 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. happens when you do that? See also this: http://msdn.microsoft.com/en-us/library/ms973190.aspx#64mig_topic5 "Yoavo" <y***@cimatron.co.il> wrote in message From what tool do you get the error?news:uRVDqBn8JHA.4172@TK2MSFTNGP02.phx.gbl... > 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 ? 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. Show quoteHide quote > > thanks, > Yoav.
Other interesting topics
False Positives From String Comparison using string.Equals()
What am I doing wrong with GCHandle here... help on generic space creating an array of forms Appliation.Exit not killing my Threads LINQ - retrieve differences between two generic Lists Query with Dataset Clear the saved value in a TextBox Re-opening file streams StatusStrip control question |
|||||||||||||||||||||||