Aspose.Cells_FOSS
26.4.2
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
dotnet add package Aspose.Cells_FOSS --version 26.4.2
NuGet\Install-Package Aspose.Cells_FOSS -Version 26.4.2
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.4.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aspose.Cells_FOSS" Version="26.4.2" />
<PackageReference Include="Aspose.Cells_FOSS" />
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.4.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Aspose.Cells_FOSS, 26.4.2"
#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.4.2
#: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.4.2
#tool nuget:?package=Aspose.Cells_FOSS&version=26.4.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Aspose.Cells FOSS for .NET
A powerful, open-source .NET library for creating, editing, and saving Excel .xlsx workbooks. No Microsoft Excel installation required. Built with performance and simplicity in mind.
Why Aspose.Cells FOSS?
- Zero Dependencies - Works without Microsoft Excel or Office
- Simple API - Intuitive design modeled after Aspose.Cells
- High Performance - Optimized for large workbooks
- Reliable - Recovery-oriented loading with detailed diagnostics
- Full Feature Set - Cells, styles, charts, formulas, and more
- Cross-Platform - Supports .NET Standard 2.0 and .NET 8.0
- MIT License - Free for commercial and personal use
Quick Start
Installation
dotnet add package Aspose.Cells.FOSS
Create Your First Excel File
using Aspose.Cells_FOSS;
// Create a new workbook
var workbook = new Workbook();
var sheet = workbook.Worksheets[0];
// Add data
sheet.Cells["A1"].PutValue("Product");
sheet.Cells["B1"].PutValue("Price");
sheet.Cells["A2"].PutValue("Apple");
sheet.Cells["B2"].PutValue(2.99);
sheet.Cells["A3"].PutValue("Orange");
sheet.Cells["B3"].PutValue(1.99);
// Add formula
sheet.Cells["B4"].Formula = "=SUM(B2:B3)";
// Style the header
var headerStyle = sheet.Cells["A1"].GetStyle();
headerStyle.Font.IsBold = true;
headerStyle.Font.Color = System.Drawing.Color.White;
headerStyle.ForegroundColor = System.Drawing.Color.FromArgb(0, 120, 212);
sheet.Cells["A1"].SetStyle(headerStyle);
sheet.Cells["B1"].SetStyle(headerStyle);
// Save the workbook
workbook.Save("products.xlsx");
Load and Edit Existing Files
using Aspose.Cells_FOSS;
// Load an existing workbook
var workbook = new Workbook("existing.xlsx");
var sheet = workbook.Worksheets[0];
// Edit cells
sheet.Cells["A1"].PutValue("Updated Value");
// Add conditional formatting
var collection = sheet.ConditionalFormattings;
var index = collection.Add();
var format = collection[index];
var fcs = format.FormulaConditions;
fcs.AddCondition(FormatConditionType.Expression, OperatorType.Between, "=B2>100", "");
// Save changes
workbook.Save("updated.xlsx");
Key Features
Core Excel Operations
- Create, load, edit, and save
.xlsxworkbooks - Support for file and stream operations
- Cell access by A1 notation and zero-based indexes
- Scalar values: string, number, boolean, decimal, DateTime
- Formula text storage and evaluation
- Shared strings and inline strings
Styling & Formatting
- Rich cell styles (fonts, colors, backgrounds)
- Borders, fills, and number formats
- Cell merging
- Conditional formatting rules
- Data validation
Worksheet Management
- Multiple worksheets with collection management
- Worksheet visibility control
- Auto-filter support
- Protection and security
- View settings and frozen panes
Advanced Features
- Hyperlinks and defined names
- Data validations and rules
- Page setup, margins, headers/footers
- Print settings
- 1900 and 1904 date systems
- Workbook and document properties
- Recovery-oriented loading with diagnostics
Compatibility
| Target Framework | Support |
|---|---|
| .NET Standard 2.0 | Yes |
| .NET 8.0 | Yes |
| .NET 6.0 | Yes |
| .NET Framework 4.6.1+ | Yes |
| .NET Core 2.0+ | Yes |
Minimum Requirements:
- C# 6.0 or higher
- No external dependencies
Build from Source
# Clone the repository
git clone https://github.com/aspose-cells-foss/Aspose.Cells-FOSS-for-.NET.git
cd Aspose.Cells-FOSS-for-.NET
# Build the library
dotnet build src\Aspose.Cells_FOSS\Aspose.Cells_FOSS.csproj -c Release
# Run samples
dotnet run --project samples\Aspose.Cells_FOSS.Samples.Basic\Aspose.Cells_FOSS.Samples.Basic.csproj
Samples
Explore comprehensive examples in the samples/ directory:
| Sample | Description |
|---|---|
| Basic | Core operations and cell manipulation |
| Loading | Load options and diagnostics |
| Styles | Cell styling and formatting |
| WorksheetSettings | Worksheet configuration |
| Validations | Data validation rules |
| ConditionalFormatting | Conditional formatting rules |
| HyperlinksAndNames | Hyperlinks and defined names |
| PageSetup | Print and page setup |
| Shapes | Drawing shapes |
| Charts | Chart creation |
| Comments | Cell comments |
| DocumentProperties | Workbook properties |
| ListObjects | Tables and lists |
| Pictures | Image insertion |
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support & Community
Made with love by the Aspose.Cells FOSS Team
If you find this project useful, please consider giving it a star on GitHub!
| Product | Versions 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.4.2 | 0 | 5/18/2026 |