programming, testing programs" />
Compiling and testing WebSphere MQ .NET programs
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.csTo 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.vbTo build a Managed C++ application using WebSphere MQ classes for .NET, use the following command:
cl /clr mqmtop\bin Myprog.cppBefore we 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, we can direct it to the assemblies in either of the following ways:
- Registering both amqmdnet.dll and amqmdxcs.dll in the GAC.
The commands to register the assemblies are:
gacutil -i mqmtop\bin\amqmdnet.dll gacutil -i mqmtop\bin\amqmdxcs.dll- Creating a 'configuration file' for the WebSphere MQ .NET program.
The configuration file should tell the CLR how to locate the amqmdnet.dll and amqmdxcs.dll assemblies.
csqzav0545