Installation

Installation of Aspose.Slides FOSS for .NET

Aspose.Slides FOSS for .NET targets .NET 9.0 and has no native dependencies: no Microsoft Office or other proprietary runtime required. aspose-slides-foss/slides is not yet published — build from source until it ships. See the project README for build instructions.


Prerequisites

RequirementDetail
.NET version.NET 9.0 SDK or later
Build toolgit + the .NET 9.0 SDK (build from source; no NuGet package published yet)
Operating systemWindows, macOS, Linux (any platform supported by .NET 9.0)
Compiler / build tools.NET 9.0 SDK (includes the C# compiler)

1. Build from Source

Clone the repository and build the solution with the .NET CLI:

git clone https://github.com/aspose-slides-foss/Aspose.Slides-FOSS-for-.NET.git
cd Aspose.Slides-FOSS-for-.NET
dotnet build Aspose.Slides.Foss.sln -c Release

Reference the built assembly from your own project (or add the cloned repository as a project reference). No NuGet package is currently published — check the project README for the latest distribution status before assuming otherwise.


2. Verify the Installation

After installing, verify that the library loads correctly and a Presentation can be created:

using Aspose.Slides.Foss;
using Aspose.Slides.Foss.Export;

using var prs = new Presentation();
Console.WriteLine("Aspose.Slides FOSS installed successfully");
Console.WriteLine($"Slides in empty presentation: {prs.Slides.Count}");

Expected output:

Aspose.Slides FOSS installed successfully
Slides in empty presentation: 1

Quick Start: Create a Presentation with a Shape

The following program creates a new presentation, adds a rectangle with text, and saves it as a .pptx file:

using Aspose.Slides.Foss;
using Aspose.Slides.Foss.Export;

using var prs = new Presentation();
var slide = prs.Slides[0];

// Add a rectangle shape and set its text
var shape = slide.Shapes.AddAutoShape(ShapeType.Rectangle, 50, 50, 400, 150);
shape.AddTextFrame("Hello from Aspose.Slides FOSS!");

prs.Save("hello.pptx", SaveFormat.Pptx);
Console.WriteLine("Saved hello.pptx");

Important: Always use Presentation with a using statement or explicitly call Dispose(). This ensures proper cleanup of internal resources.


Platform Notes

Windows, macOS, Linux: The library is identical on all platforms. There are no platform-specific code paths or native extensions.

Docker / serverless: The library builds inside .NET Docker images (such as mcr.microsoft.com/dotnet/sdk:9.0) with the same git clone + dotnet build steps above. No additional system packages are required.

CI/CD: Add the git clone + dotnet build steps to your CI pipeline’s dependency stage, or vendor the built assembly directly. No additional setup is required.


Additional Resources

See Also

 English