You are here: Start » C# Project Configuration

C# Project Configuration

This document describes Adaptive Vision Deep Learning Library .NET only. For more information about AVL.NET see its documentation.

Requirements

Adaptive Vision Deep Learning Library .NET is designed to be a part of applications working under control of the Microsoft Windows operating system. Supported versions are: 7, 8/8.1 and 10. To build an application using Adaptive Vision Deep Learning Library .NET under Microsoft Windows, Microsoft Visual Studio environment is required. Supported versions are: 2010, 2012, 2013, 2015 and 2017.

Directories

Adaptive Vision Deep Learning Library .NET is distributed as a managed 64-bit assemblies (*.dll). Assemblies are located in following paths:

  • %AVLDL_PATH4_12%\bin\x64\AvlDl.Net.dll - containing .NET wrappers for AVLDL.dll.
  • %AVLDL_PATH4_12%\bin\x64\Avl.Net.TS.dll - this assembly should be referenced only in case of creating application using AvlDl.Net but not AVL.NET (see below).

where %AVLDL_PATH4_12% is an environment variable set during Adaptive Vision Deep Learning Addon installation.

Configuring Project

To built application with Adaptive Vision Deep Learning Library .NET, AvlDl.Net.dll assembly must be referenced. It can be done using typical mechanisms provided by Microsoft Visual Studio.

In rare case of creating application without using AVL.NET, Avl.Net.TS.dll assembly, provided by Adaptive Vision Deep Learning Addon (see above), have to be also referenced.

In most cases, created application will also use AVL.NET. In such case, is it advised to reference Avl.Net.TS.dll assembly provided by AVL.NET. Moreover, make sure that Application | Auto-generate binding redirects project setting is enabled. Used AVL.NET should not have older than AvlDl.Net - it may result in CS1705 error regarding AvlDl.Net and Avl.Net.TS.

To have the built application work properly, besides AvlDl.Net.dll assembly there must be also native AVLDL.dll library present in the application directory. This can be achieved with PostBuildEvent which will copy appropriate version of the AVLDL.dll library:

    <PostBuildEvent>
        xcopy /D /Y "$(AVLDL_PATH4_12)\bin\x64\AVLDL.dll" "$(TargetDir)"
    </PostBuildEvent>

All programs using AVLDL.dll have to load DLL files from Deps_x64 subdirectory of Adaptive Vision Deep Learning Addon installation directory. Common ways to ensure that are:

  • add path to Deps_x64 directory to PATH environment variable, or
  • copy contents of Deps_x64 to some directory listed in PATH environment variable, or
  • copy contents of Deps_x64 next to AVLDL.dll.
Previous: C++ Project Configuration Next: DeepLearning_ClassifyObject