Building C# .NET applications
Db2® products provide a
bldapp.bat batch file for compiling and linking Db2 C# .NET applications.
This batch file is located in the sqllib\samples\.NET\cs directory along with sample programs that
can be built with this file.
The batch file
takes one parameter, %1, for the name of the source file to be compiled (without the .cs
extension).
About this task
This task will take you through the basic steps of building a C# .NET application using bldapp.bat with the DbAuth sample file.
Procedure
To build the program,
DbAuth
, from the
source file, DbAuth.cs
, enter: bldapp DbAuth
To ensure you have the parameters you need when you run the
executable, you can specify different combinations of parameters depending
on the number entered:
What to do next
LCTrans
sample
program, you need to follow more detailed instructions given in the
source file, LCTrans.cs
.