This chapter introduces you to HALCON/.NET. Chapter “Creating Applications With HALCON/.NET” shows how to use it to create .NET applications, chapter “Additional Information” contains additional information.
HALCON/.NET is HALCON's interface to .NET programming languages, e.g., C# or Visual Basic .NET. It provides you with a set of .NET classes and controls.
HALCON/.NET is highly platform-independent: It is written in C# but can be used in any .NET language. Like .NET in general, it can be used under Windows, MacOS and Linux, on 32-bit and 64-bit systems.
What's more, not only can you use it on all these platforms, but you can run an application created on one of them on the other ones without having to recompile it. This is possible because applications written in .NET languages are stored in a platform-independent intermediate language, which is then compiled by the so-called common language runtime into platform-specific code.
Both .NET Core and .NET Framework are supported. The interface is the same for both as well as their documented behavior. For users they mostly differ in terms of tooling and platform support. Most of the relevant differences are documented in chapter “Creating Applications With HALCON/.NET”.
NuGet packages are provided for .NET Core, and assemblies for .NET Framework.
By using the HDevEngine/.NET language bindings, you can execute HDevelop programs and procedures from a .NET application. For more information, please refer to part “Using HDevEngine”.
HALCON/.NET XL and HDevEngine/.NET XL
Packages and assemblies are provided for both HALCON and HALCON XL. The packages for .NET Core are available with XL as suffix, for example MVTec.HalconDotNet and MVTec.HalconDotNetXL. The assemblies for .NET Framework are available with xl as suffix, for example halcondotnet.dll and halcondotnetxl.dll.