OfficeForge 0.1.0

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

officeforge

Cross-platform .NET library and CLI to create, edit and convert Word/Excel/PowerPoint documents, built on the OpenXML SDK.

Server-side Office document generation on Linux/CI without Office installed and without COM interop - the popular tools in this space are Windows-bound.

Install

dotnet add package OfficeForge          # library
dotnet tool install -g OfficeForge.Cli  # CLI (command: officeforge)

Quickstart

using OfficeForge;
using OfficeForge.Export;
using OfficeForge.Models;

// Create a workbook, write cells, save
var workbook = new WorkbookModel();
var sheet = workbook.AddSheet("Report");
sheet["A1"] = CellValue.FromText("Revenue");
sheet["B1"] = CellValue.FromNumber(42500.75);
OfficeDocument.SaveWorkbook(workbook, "report.xlsx");

// Open it back and read a cell
var loaded = OfficeDocument.OpenWorkbook("report.xlsx");
Console.WriteLine(loaded.Sheets[0]["B1"]); // 42500.75

// Export any document to markdown
Console.WriteLine(OfficeDocument.Export("report.xlsx", ExportFormat.Markdown));

CLI:

officeforge write-cell report.xlsx B2 1999.5   # creates the file if missing
officeforge read-cell report.xlsx B2
officeforge convert report.xlsx --format markdown

Features

Area Support
Excel (.xlsx) read, write, cell-level editing, formulas
Word (.docx) read, write (paragraphs, headings, tables)
PowerPoint (.pptx) read (slides, text, notes)
Templates {{key}} placeholder fill in .docx and .xlsx
Export text, markdown, json from any supported format

Requirements

  • .NET 10.0
  • No Microsoft Office, no COM interop
  • Linux, macOS, Windows

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 123 7/11/2026