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
<PackageReference Include="MediaInfo.Core.Native" Version="26.1.0" />
<PackageVersion Include="MediaInfo.Core.Native" Version="26.1.0" />
<PackageReference Include="MediaInfo.Core.Native" />
paket add MediaInfo.Core.Native --version 26.1.0
#r "nuget: MediaInfo.Core.Native, 26.1.0"
#:package MediaInfo.Core.Native@26.1.0
#addin nuget:?package=MediaInfo.Core.Native&version=26.1.0
#tool nuget:?package=MediaInfo.Core.Native&version=26.1.0
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
PackageReferenceand 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
- OpenSSL
The package contains runtime-specific native files under runtimes/{rid}/native.
Depending on the target runtime, the payload includes:
- Windows:
libmediainfo.dlllibcurl.dlllibssh2.dlllibcrypto-3-x64.dll/libcrypto-3.dlllibssl-3-x64.dll/libssl-3.dllbrotlicommon.dllbrotlidec.dllbrotlienc.dll
- Linux:
libmediainfo.solibzen.so.0for selected distributions
- macOS:
libmediainfo.dylib
The package also includes native component history files:
History_MediaInfo.txtHistory_Curl.txtHistory_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-x86win-x64
- macOS:
osx-x64
- Linux generic family RIDs:
alpine-x64centos-stream-x64debian-x64fedora-x64kali-x64opensuse-x64rhel-x64ubuntu-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
- Alpine
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-MediaInfofor 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
.targetsfile; - your solution already expects the native files to appear directly in the build output or in
x86/x64subfolders.
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
DllImportor 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.Nativeis the correct 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 | |
| 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.