Joveler.FileMagician

libmagic (file) pinvoke library for .NET. Supports Windows, Linux and macOS.


Keywords
libmagic, magic, file, native, pinvoke, interop
License
BSD-2-Clause
Install
Install-Package Joveler.FileMagician -Version 2.3.1

Documentation

Joveler.FileMagician

Joveler.FileMagician is a cross-platform libmagic pinvoke library for .NET.

libmagic is a file-type guesser library that powers POSIX's file command.

CI Server Branch Build Status
AppVeyor Master CI Master Branch Build Status
AppVeyor Develop CI Develop Branch Build Status
Azure Pipelines Master Azure Pipelines CI Master Branch Build Status
Azure Pipelines Develop Azure Pipelines CI Develop Branch Build Status

Install

Joveler.FileMagician can be installed via nuget.

NuGet

Support

Targeted .NET platforms

  • .NET Core 3.1
  • .NET Standard 2.0
  • .NET Framework 4.6

Discontinued platforms

Platform Last Supported Version
.NET Framework 4.5.1 v2.2.0

Supported OS platforms

Platform Architecture Tested
Windows x86 Yes
x64 Yes
arm64 Yes
Linux x64 Yes
armhf Yes
arm64 Yes
macOS x64 Yes
arm64 Yes

Tested Linux distributions

Architecture Distribution
x64 Ubuntu 20.04
armhf Debian 12
arm64 Debian 12

Supported libmagic version

  • 5.44 (Included)

Usage

See USAGE.md.

Changelog

See CHANGELOG.md.

License

  • Joveler.FileMagician and libmagic is licensed under the BSD 2-Clause license.
  • Bundled Windows binary depends on LGPLv2.1 libgnurx.
  • See LICENSE for details.
  • The logo, search icon from the Material Icons, is licensed under Apache 2.0 License.