To build a C# application using WebSphere MQ classes for .NET, use the following command:
csc /t:exe /r:System.dll /r:amqmdnet.dll /lib:mqmtop\bin /out:MyProg.exe MyProg.cs
To build a Visual Basic application using WebSphere MQ classes for .NET, use the following command:
vbc /r:System.dll /r:mqmtop\bin\amqmdnet.dll /out:MyProg.exe MyProg.vb
To build a Managed C++ application using WebSphere MQ classes for .NET, use the following command:
cl /clr mqmtop\bin Myprog.cpp
Before you can run WebSphere MQ .NET programs, the Common Language Runtime (CLR) must be able to locate all the required .NET Assemblies. As part of the installation process, both amqmdnet.dll and amqmdxcs.dll are registered with the Global Assembly Cache (GAC).
If the CLR is for some reason unable to locate either amqmdnet.dll or amqmdxcs.dll, you can direct it to the assemblies in either of the following ways:
The commands to register the assemblies are:
gacutil -i mqmtop\bin\amqmdnet.dll gacutil -i mqmtop\bin\amqmdxcs.dll
The configuration file should tell the CLR how to locate the amqmdnet.dll and amqmdxcs.dll assemblies.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzav0443 |