Building the C# API

Building C# with Visual Studio 2005

The C# support is built by a separate Visual Studio solution, build_windows\BDB_dotnet.sln, and requires version 2.0 (or higher) of the .NET platform.

Building C# with Visual Studio 2005

By default, the solution will build the native libraries, the managed assembly and all example programs. The NUnit tests need to be built explicitly because of their dependence upon the NUnit assembly. The native libraries will be placed in one of the following subdirectories, depending upon the chosen configuration:

build_windows\Win32\Debug
build_windows\Win32\Release
build_windows\x64\Debug
build_windows\x64\Release

The managed assembly and all C# example programs will be placed in one of the following subdirectories, depending upon the chosen configuration:

build_windows\AnyCPU\Debug
build_windows\AnyCPU\Release

The native libraries need to be locatable by the .NET platform, meaning they must be copied into an application's directory, the Windows or System directory, or their location must be added to the PATH environment variable. The example programs demonstrate how to programmatically edit the PATH variable.