Product Documentation

c-treeDB API for VB.Net

Previous Topic

Next Topic

Compiling Your Projects

This section explains how to compile the tutorials that guide you through the basic use of the c-treeDB .NET Visual Basic NAV interface technology.

The source code is located in the drivers\vb.nav\tutorials folder.

Note: The .NET components within FairCom DB reference the .NET Framework v4.x and above. Therefore, if you select Visual Studio 2008, 2005, or prior, you will experience errors with the tutorials due to this Framework incompatibility. Please use VS2010 or later, or contact FairCom if you need support for a prior (v2-v3) .NET framework.

Prerequisite - Configure Microsoft Visual Studio Properly

Be sure Microsoft Visual Studio is configured properly. For Visual Studio 2017 and 2019 to be able to build the tutorials, the .NET desktop development workload needs to be installed as part of Visual Studio. In Visual Studio 2017 and 2019, click Tools > Get Tools and Features, which runs the Visual Studio installer. If the installer requires an update before it will run, allow that update. Find the .NET desktop development workload under the Windows group and make sure it is checked, as shown here:

If it is not already checked, give it a check mark and then click the MODIFY button to install that workload. This ensures that all of the tools needed to build and run these tutorials are installed.

Note that Visual Studio 2015 does not have this prerequisite.

If the FairCom Database Engine is not already running on your machine, start the server as explained in Setting up the FairCom Database Engine.

Compiling and Executing the Tutorials

The sample tutorials can be compiled in Visual Studio:

You can find these solutions in the drivers\vb.nav\tutorials\IDEProjects directory.


In This Chapter

Compile Using Microsoft Visual Studio IDE

Command-Line Compile - Windows

Command-Line IDE Compile - Windows