Alex Rivera | Logout

Different .NET assembly references depending on 32-64 bit

Asked 2010-11-16T15:37:32.923
11

I've got a 32 bit and a 64 bit .NET assembly from a supplier. They have the exact same interfaces in them (same classes, same methods, etc.)

For some reason, I can never run one type on the other platform. What I've been doing thus far is simply to remove the references and then recompile as appropriate.

Is there a simpler way to do this?

EDIT

I was thinking SVN could be co-opted to solve this somehow?

EDIT

The assemblies are not in GAC. And also, the need arises because I'm building the same program on both platforms, rather than trying to run something built on one platform on the other.

Edit
Report

1 Answer

1

Tell your vendor to compile with the AnyCPU flag on and abstract all of their internal platform-dependent calls programmatically instead of asking the consumer to do it for them.

If they won't do it, you could write your own proxy using reflection but I don't recommend it. Maintaining that component over time would be a pain.

answered 2010-11-16T15:44:22.887

Your Answer