Aspose.Cells.FOSS 26.5.0

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

Aspose.Cells FOSS for .NET

Aspose.Cells FOSS is an open-source .NET library for creating, loading, editing, and saving Excel .xlsx workbooks without requiring Microsoft Excel.

Highlights

  • Aspose.Cells-compatible API surface for common XLSX scenarios
  • .xlsx load/save from file paths and streams
  • Cell values, formulas, styles, merges, and number formats
  • Conditional formatting, data validation, hyperlinks, names, tables, charts, shapes, comments, pictures
  • Recovery-oriented loading with diagnostics and warning callbacks
  • Multi-targeted library: netstandard2.0 and net8.0

Installation

dotnet add package Aspose.Cells.FOSS

Quick Start

Create, style, and save a workbook

using Aspose.Cells_FOSS;

var workbook = new Workbook();
var sheet = workbook.Worksheets[0];

sheet.Name = "Products";
sheet.Cells["A1"].PutValue("Product");
sheet.Cells["B1"].PutValue("Price");
sheet.Cells["A2"].PutValue("Apple");
sheet.Cells["B2"].PutValue(2.99m);
sheet.Cells["A3"].PutValue("Orange");
sheet.Cells["B3"].PutValue(1.99m);
sheet.Cells["B4"].Formula = "=SUM(B2:B3)";

var headerStyle = sheet.Cells["A1"].GetStyle();
headerStyle.Font.IsBold = true;
headerStyle.Font.Color = Color.FromArgb(255, 255, 255, 255);
headerStyle.Pattern = FillPattern.Solid;
headerStyle.ForegroundColor = Color.FromArgb(255, 34, 120, 212);
sheet.Cells["A1"].SetStyle(headerStyle);
sheet.Cells["B1"].SetStyle(headerStyle);

workbook.Save("products.xlsx");

Load workbook with recovery options and diagnostics

using System;
using Aspose.Cells_FOSS;

public sealed class ConsoleWarningCallback : IWarningCallback
{
    public void Warning(WarningInfo warningInfo)
    {
        Console.WriteLine("[{0}] {1}: {2}", warningInfo.Severity, warningInfo.Code, warningInfo.Message);
    }
}

var loadOptions = new LoadOptions
{
    TryRepairPackage = true,
    TryRepairXml = true,
    StrictMode = false,
    WarningCallback = new ConsoleWarningCallback()
};

var workbook = new Workbook("input.xlsx", loadOptions);

if (workbook.LoadDiagnostics.HasRepairs)
{
    Console.WriteLine("Load repairs were applied.");
}

if (workbook.LoadDiagnostics.HasDataLossRisk)
{
    Console.WriteLine("Potential data loss risk detected during load.");
}

workbook.Worksheets[0].Cells["A1"].PutValue("Updated");
workbook.Save("updated.xlsx");

Supported Areas

  • Workbook and worksheet management
  • Cells and formulas
  • Style model (font, fill, borders, alignment, number formats)
  • Worksheet settings (visibility, zoom, RTL, gridlines, protection)
  • Hyperlinks and defined names
  • Data validation and conditional formatting
  • Page setup and print-related settings
  • Tables (ListObjects)
  • Pictures, shapes, and charts
  • Document properties

For runnable examples, see samples/:

  • Aspose.Cells_FOSS.Samples.Basic
  • Aspose.Cells_FOSS.Samples.Loading
  • Aspose.Cells_FOSS.Samples.Styles
  • Aspose.Cells_FOSS.Samples.WorksheetSettings
  • Aspose.Cells_FOSS.Samples.Validations
  • Aspose.Cells_FOSS.Samples.ConditionalFormatting
  • Aspose.Cells_FOSS.Samples.HyperlinksAndNames
  • Aspose.Cells_FOSS.Samples.PageSetup
  • Aspose.Cells_FOSS.Samples.Shapes
  • Aspose.Cells_FOSS.Samples.Charts
  • Aspose.Cells_FOSS.Samples.Comments
  • Aspose.Cells_FOSS.Samples.DocumentProperties
  • Aspose.Cells_FOSS.Samples.ListObjects
  • Aspose.Cells_FOSS.Samples.Pictures

Build from Source

Run commands from the repository root:

dotnet build src\Aspose.Cells_FOSS\Aspose.Cells_FOSS.csproj -c Debug
dotnet build samples\Aspose.Cells_FOSS.Samples.Basic\Aspose.Cells_FOSS.Samples.Basic.csproj -c Debug

Compatibility

Primary targets:

  • netstandard2.0
  • net8.0

Because the package targets netstandard2.0, it can also be consumed by many compatible runtimes (for example .NET Framework 4.6.1+ and modern .NET).

License

MIT. See License/LICENSE.txt.

Support

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 netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  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.
  • .NETStandard 2.0

    • No dependencies.
  • net8.0

    • No dependencies.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
26.5.0 0 5/20/2026
26.4.2.2 0 5/19/2026
26.4.2.1 0 5/18/2026