Nedev.FileConverters.Core 0.1.0

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

Nedev.FileConverters.Core

This library provides the core interfaces and registration mechanisms for the Nedev.FileConverters family of converters.

Features

  • IFileConverter interface for converting streams from one format to another
  • Nedev.FileConverters.Converter as the consumer-facing conversion entry
  • Automatic discovery of attributed converters through the Core infrastructure
  • ServiceCollection extension to register converters in DI containers

Getting Started

Install the package (once published) via NuGet:

Install-Package Nedev.FileConverters.Core

Implementing a converter

Create a class that implements IFileConverter and adorn it with FileConverterAttribute to indicate the formats it handles:

using Nedev.FileConverters.Core;

[FileConverter("doc", "docx")]
public class MyConverter : IFileConverter
{
    public Stream Convert(Stream input)
    {
        // perform conversion
    }
}

When conversion is first requested, the Core infrastructure automatically scans loaded assemblies, instantiates each attributed converter, and caches it. In the common case no extra registration code is required.

Using dependency injection (host side)

This is intended for the application or library that hosts converter implementations. Regular consumers should prefer the static Nedev.FileConverters.Converter entry shown below.

using Nedev.FileConverters.Core;

services.AddFileConverter("doc", "docx", new MyConverter());

Consumer entry (recommended)

Converter is the main consumer-facing entry point:

using Nedev.FileConverters;

using var outStream = Converter.Convert(inStream, "doc", "docx");

Contributing

Feel free to open issues or pull requests to add new converters or improve the core.

License

This project is released under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (11)

Showing the top 5 NuGet packages that depend on Nedev.FileConverters.Core:

Package Downloads
Nedev.FileConverters.HtmlToDocx

High-performance HTML to DOCX converter for .NET 10 with zero third-party dependencies

Nedev.FileConverters.DocToDocx

A high-performance DOC to DOCX converter without third-party dependencies

Nedev.FileConverters.DocxToPdf

A .NET library for converting DOCX files to PDF using custom PDF engine

Nedev.FileConverters.PptToPptx

Library for converting legacy `.ppt` files to modern `.pptx`/`.pptm` formats.

Nedev.FileConverters.DocxToDoc

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 480 3/6/2026