Search code examples
ibm-mqxms

How to reference IBM.XMS.dll in my .NET project


I'm building a program which will start listening to an IBM queue. And for this I'm using the IBM.XMS.dll which came with the Websphere MQ Client installation for Windows. I'm asking myself, when I deploy this to acceptance or production, then probably I have to install the Websphere MQ Client also on that machine?

And my other question is, do I have to reference the IBM.XMS.dll like this: C:\Program Files\IBM\WebSphere MQ\bin\IBM.XMS.dll? I tried with just putting the IBM.XMS.dll in my build folder of my .NET solution but that doesn't work because the dll has dependencies to other dll's.

EDIT

After looking at samples, I've seen that the samples written by IBM are referencing the dlls in the GAC. So I did the same.

  1. press Ctrl + R
  2. Type C:\WINDOWS\assembly\GAC_MSIL\IBM.XMS
  3. Press Enter
  4. Find the IBM.XMS.dll and reference this one in your solution

Solution

  • After looking at samples, I've seen that the samples written by IBM are referencing the dlls in the GAC. So I did the same.

    1. press Ctrl + R
    2. Type C:\WINDOWS\assembly\GAC_MSIL\IBM.XMS
    3. Press Enter
    4. Find the IBM.XMS.dll and reference this one in your solution