MediaDevices 2.0.0

dotnet add package MediaDevices --version 2.0.0
                    
NuGet\Install-Package MediaDevices -Version 2.0.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="MediaDevices" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MediaDevices" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MediaDevices" />
                    
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 MediaDevices --version 2.0.0
                    
#r "nuget: MediaDevices, 2.0.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 MediaDevices@2.0.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=MediaDevices&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MediaDevices&version=2.0.0
                    
Install as a Cake Tool

MediaDevices

Media Devices is a API to interact with MTP (Media Transfer Protocol), PTP (Picture Transport Protocol) and MSC (Mass Storage Class) devices like cell phones, tablets and cameras.

Version 2 has been completely rewritten to support the following features:

  • Thread-safe: The library can now be used across multiple threads.

  • Trimmable

  • AOT-compatible

  • Uses generated COM and LibraryImport

  • Async support

Older .NET versions prior to 8.0 are no longer supported, as they do not support these new features.

Download

NuGet Package

Documentation

Pages

You are welcome to support this project.

Donate

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net9.0-windows7.0 is compatible.  net10.0-windows was computed.  net10.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0-windows7.0

    • No dependencies.
  • net8.0-windows7.0

    • No dependencies.
  • net9.0-windows7.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MediaDevices:

Package Downloads
ExternalDevices

A test library

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on MediaDevices:

Repository Stars
zhuxb711/RX-Explorer
一款优雅的UWP文件管理器 | An elegant UWP Explorer
sansy02/SwitchPorter
Switch 相册管家:USB 连接 Nintendo Switch,将截图与视频一键保存到电脑或安卓手机(游戏封面、搜索、时间排序、批量保存、重复检测)
Version Downloads Last Updated
2.0.0 4,087 8/20/2026
1.10.0 33,783 1/11/2023
1.9.1 26,183 9/24/2021
1.9.0 825 9/23/2021
1.8.0 24,634 1/13/2019
1.7.0 1,874 9/3/2018
1.6.0 2,511 2/13/2018
1.5.0 2,125 12/16/2017
1.4.0 2,201 9/2/2017
1.3.0 5,457 1/30/2017
1.2.0 1,752 11/20/2016
1.1.0 2,335 10/27/2016
1.0.0 2,151 9/18/2016

Async, AOT, Trimmable and Thread Safe