Installation
Installation
This guide walks you through installing Aspose.Cells FOSS for .NET and verifying that the library is working in your project.
Prerequisites
| Requirement | Detail |
|---|---|
| Runtime | .NET 6.0 or later (.NET 8.0 LTS recommended) |
| OS | Windows, macOS, Linux, or Docker |
| Package manager | NuGet (dotnet CLI, Visual Studio, or Rider) |
| External dependencies | None — pure managed code, no Office required |
Step 1 — Add the NuGet Package
Run the following command in your project directory:
dotnet add package Aspose.Cells_FOSSAlternatively, install through the Visual Studio Package Manager Console:
Install-Package Aspose.Cells_FOSSOr add the package reference directly to your .csproj file:
<PackageReference Include="Aspose.Cells_FOSS" Version="*" />Step 2 — Add the Using Directive
At the top of any C# file that uses the library, add:
using Aspose.Cells_FOSS;Step 3 — Verify the Installation
Create a small test program to confirm the library loads and produces a valid XLSX file:
using Aspose.Cells_FOSS;
var workbook = new Workbook();
var sheet = workbook.Worksheets[0];
sheet.Cells["A1"].PutValue("Hello from Aspose.Cells FOSS");
sheet.Cells["B1"].PutValue(42);
sheet.Cells["C1"].Formula = "=B1*2";
workbook.Save("verify.xlsx");
var loaded = new Workbook("verify.xlsx");
Console.WriteLine(loaded.Worksheets[0].Cells["A1"].StringValue);
Console.WriteLine(loaded.Worksheets[0].Cells["C1"].StringValue);Expected output:
Hello from Aspose.Cells FOSS
84If the file is written and both values print correctly, the installation is complete.
Next Steps
- Quick Start — Create your first spreadsheet with formulas, styles, and multiple worksheets
- Developer Guide — In-depth tutorials covering all major feature areas
- KB Articles — Task-oriented how-to guides