When I compile my AX C# project from the AOT, I get the following error:
MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Microsoft.Dynamics.AX.ManagedInterop", "x86". This mismatch may cause runtime failures. Please consider changing
It seems the cause is the ManagedInterop assembly is 32-bit but my project platform target is set to 'Any CPU'. If I change my project to x86, then the warning goes away, but my .NET code will not work when called from the server (which is 64-bit), so I think it is correct the way it is.
This is only a minor annoyance, but it would be nice if there was some way to suppress this specific warning completely. I've searched online but most solutions say to change the platform target. If someone knows another way, please let me know.
*This post is locked for comments
I have the same question (0)