Table of Contents

Method GetLibraryPath

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetLibraryPath<T>(string)

Determines the best path to the specified native library by probing common locations relative to the managed assembly, the current directory, and application domain paths. If no local file is found, returns the library name with platform extension.

public static string GetLibraryPath<T>(string libraryName)

Parameters

libraryName string

The base name of the native library (may or may not include an extension).

Returns

string

A full path to the native library file when found, or the library name with the platform extension to allow the OS loader to resolve it from PATH or default locations.

Type Parameters

T

A type from the assembly to use as a reference point when probing alongside the managed assembly.