MediaInfo.Core.Native 26.1.0

dotnet add package MediaInfo.Core.Native --version 26.1.0
                    
NuGet\Install-Package MediaInfo.Core.Native -Version 26.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MediaInfo.Core.Native" Version="26.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MediaInfo.Core.Native" Version="26.1.0" />
                    
Directory.Packages.props
<PackageReference Include="MediaInfo.Core.Native" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MediaInfo.Core.Native --version 26.1.0
                    
#r "nuget: MediaInfo.Core.Native, 26.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MediaInfo.Core.Native@26.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MediaInfo.Core.Native&version=26.1.0
                    
Install as a Cake Addin
#tool nuget:?package=MediaInfo.Core.Native&version=26.1.0
                    
Install as a Cake Tool

MediaInfo.Core.Native

MediaInfo.Core.Native is a NuGet package that ships prebuilt native MediaInfoLib binaries using the standard runtimes/{rid}/native layout used by modern .NET.

This repository publishes the package for MP-MediaInfo, but it can also be consumed by any other .NET solution that needs native MediaInfo binaries on Windows, Linux, or macOS.

What this package is

  • A cross-platform native binary package for modern .NET applications.
  • A distribution package for MediaInfoLib and its runtime-specific native dependencies.
  • A NuGet package intended to work with PackageReference and RID-based native asset resolution.

What this package is not

  • It is not a managed .NET wrapper.
  • It does not provide a C# object model or convenience API by itself.
  • It is not the Windows-only package in this repository.

If you only need Windows binaries with MSBuild copy behavior for classic or Windows-focused projects, use MediaInfo.Native instead.

Package contents

Current package metadata in this repository:

  • Package ID: MediaInfo.Core.Native
  • Version: 26.1.0
  • Upstream library: MediaInfoLib 26.01
  • Windows native dependency versions:
    • OpenSSL 3.6.1
    • libcurl 8.19.1-DEV
    • libssh2 1.11.2-DEV
    • Brotli runtime DLLs

The package contains runtime-specific native files under runtimes/{rid}/native.

Depending on the target runtime, the payload includes:

  • Windows:
    • libmediainfo.dll
    • libcurl.dll
    • libssh2.dll
    • libcrypto-3-x64.dll / libcrypto-3.dll
    • libssl-3-x64.dll / libssl-3.dll
    • brotlicommon.dll
    • brotlidec.dll
    • brotlienc.dll
  • Linux:
    • libmediainfo.so
    • libzen.so.0 for selected distributions
  • macOS:
    • libmediainfo.dylib

The package also includes native component history files:

  • History_MediaInfo.txt
  • History_Curl.txt
  • History_OpenSSL.md

Supported runtimes

MediaInfo.Core.Native is intended for RID-based consumption in .NET Core and later.

The nuspec currently includes native assets for these runtime families:

  • Windows:
    • win-x86
    • win-x64
  • macOS:
    • osx-x64
  • Linux generic family RIDs:
    • alpine-x64
    • centos-stream-x64
    • debian-x64
    • fedora-x64
    • kali-x64
    • opensuse-x64
    • rhel-x64
    • ubuntu-x64
  • Linux distro/version-specific RIDs:
    • Alpine 3.17, 3.18, 3.19, 3.20
    • CentOS Stream 8, 9, 10
    • Debian 10, 11, 12, 13
    • Fedora 37, 38, 39, 40, 41, 42
    • OpenSUSE 15.4, 15.5, 15.6, 16.0
    • RHEL 8, 9, 10
    • Ubuntu 18.04, 20.04, 22.04, 24.04, 25.10

In practice, the final native asset chosen by .NET depends on the runtime identifier used during restore, build, publish, or application startup.

How the package works

Unlike MediaInfo.Native, this package does not rely on a custom .targets file for Windows output copying.

Instead, it uses the standard NuGet runtime asset layout:

runtimes/{rid}/native/

That allows modern .NET tooling to select the correct native files automatically for the active runtime identifier.

This model is better suited for:

  • SDK-style projects;
  • PackageReference;
  • .NET Core, .NET 5+, .NET 6+, and later;
  • containerized Linux deployments;
  • cross-platform libraries and applications.

When to use this package

Use MediaInfo.Core.Native when:

  • your application targets modern .NET;
  • you need cross-platform native MediaInfo support;
  • you want runtime asset selection based on RID instead of custom copy logic;
  • you distribute or publish for Linux containers, Windows desktops, or macOS;
  • you want the same native package strategy used by MP-MediaInfo for cross-platform scenarios.

When to use MediaInfo.Native instead

Use MediaInfo.Native when:

  • your application is Windows-only;
  • you want the package to copy native files through an MSBuild .targets file;
  • your solution already expects the native files to appear directly in the build output or in x86 / x64 subfolders.

The two packages solve different packaging problems:

  • MediaInfo.Native: Windows-focused package with explicit MSBuild copy logic.
  • MediaInfo.Core.Native: cross-platform package using RID-based native assets.

Installation

PackageReference:

<ItemGroup>
  <PackageReference Include="MediaInfo.Core.Native" Version="26.1.0" />
</ItemGroup>

NuGet Package Manager Console:

Install-Package MediaInfo.Core.Native -Version 26.1.0

Typical consumption patterns

This package is usually consumed by:

  • a managed wrapper that declares DllImport or source-generated interop for MediaInfo exports;
  • a higher-level library that hides native interop details from the application;
  • an app that publishes for a specific RID and lets .NET resolve the correct native asset set.

Because this package only provides native binaries, your solution is still responsible for:

  • defining the managed interop surface;
  • using the correct native library name in your P/Invoke layer;
  • restoring or publishing with the runtime identifiers you intend to support;
  • testing on the actual target OS and distro family.

Example scenario

MP-MediaInfo can use MediaInfo.Core.Native as the native distribution layer when the solution needs standard modern .NET runtime asset behavior instead of the Windows-specific .targets model.

The same pattern works well for other solutions that want:

  • native MediaInfo delivery through NuGet;
  • cross-platform packaging in a single package;
  • versioned updates of MediaInfo and its native dependencies;
  • clean separation between managed interop code and native payloads.

Licensing

The packaged upstream MediaInfo library is distributed under the BSD 2-Clause license by MediaArea.net SARL.

Upstream project:

Upstream license:

Consumers should review the upstream license terms and any obligations related to bundled native dependencies.

Notes for maintainers and consumers

  • Version numbers in the package describe the native payload, not a managed API surface.
  • Windows assets include additional networking and crypto dependencies used by the packaged MediaInfo build.
  • Linux and macOS consumers should validate runtime behavior on the exact target environment they publish for.
  • If you need automatic RID-based native asset resolution, MediaInfo.Core.Native is the correct package.
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on MediaInfo.Core.Native:

Package Downloads
MediaInfo.Wrapper.Core

MediaInfo(Lib) is a convenient unified display of the most relevant technical and tag data for video and audio files. MediaInfo .NET wrapper with support network AV streams.

Zen.Media

Media handling for Zen

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
26.1.0 8,635 3/23/2026
21.9.1 763,883 9/30/2021
21.9.0 7,865 9/29/2021
21.3.3 13,394 8/24/2021
21.3.2 13,372 6/6/2021
21.3.1 11,456 3/29/2021
21.3.0 5,740 3/29/2021 21.3.0 is deprecated because it has critical bugs.
20.9.1 5,265 12/19/2020
20.9.0 19,858 12/10/2020
20.8.1 8,765 8/14/2020
19.9.1 34,002 2/23/2020
19.9.0 19,959 1/7/2020
19.4.0 10,173 6/9/2019

Release 26.01 MediaInfo with support network AV streams. Windows version is included 3.6.1 OpenSSL, 8.19.1-DEV libcurl, 1.11.2-DEV libssh2.