Warning about mismatch of AMD64 vs MSIL

Warning about mismatch of AMD64 vs MSIL

Anonymous
Not applicable
3,989 Views
3 Replies
Message 1 of 4

Warning about mismatch of AMD64 vs MSIL

Anonymous
Not applicable

When I compile my first MyCircleCommand program from

http://www.cadalyst.com/cad/autocad/create-plugin-autocad-16750?page_id=1

I get the following warning. Is it OK to ignore this or how to fix this warning without Ignore options?

 

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "acdbmgd", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

 

0 Likes
Accepted solutions (1)
3,990 Views
3 Replies
Replies (3)
Message 2 of 4

norman.yuan
Mentor
Mentor
Accepted solution

You can igore the warning. It is beause your DLL project is set to target "Any CPU" while the AutoCAD managed assembly is a wrapper of 64-bit ObjectARX code when your AutoCAD is 64-bit.

 

If you set your project to target x64 CPU, then the warnign would go away. But then your .NET plugin would only work with 64-bit AutoCAD. So, stay with "Any CPU" in most cases and ignore the compiling warning.

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 4

Alexander.Rivilis
Mentor
Mentor
Another solution is using managed assembles from ObjectARX SDK.

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

0 Likes
Message 4 of 4

Anonymous
Not applicable

Sorry for the delayed reply

As suggested I ignored the warning and stayed with Any CPU.

The VB .NET code compiled successfully and I was able to run the code within AutoCAD 2012 via NETLOAD and entering the command text at Command:

Thanks

PV Subramanian

0 Likes