programming, testing programs" /> Compiling and testing WebSphere MQ .NET 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.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 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:


csqzav0545