Installation

Installation

This page covers installing Aspose.Email.Foss into a .NET project.


Prerequisites

RequirementDetail
.NET8.0 or later (dotnet --version to check)
NuGetIncluded with the .NET SDK
OSWindows, Linux, or macOS

Install via NuGet CLI

dotnet add package Aspose.Email.Foss

Install via Package Manager Console (Visual Studio)

Install-Package Aspose.Email.Foss

Install via PackageReference (csproj)

<PackageReference Include="Aspose.Email.Foss" Version="*" />

Verify the Installation

Add the following to a minimal console application and run it:

using Aspose.Email.Foss.Msg;

var message = MapiMessage.Create("Test subject", "Test body");
Console.WriteLine($"Subject: {message.Subject}");
// Output: Subject: Test subject

If you see the subject printed without errors, the package is installed correctly.


Namespaces

NamespaceContents
Aspose.Email.Foss.MsgMapiMessage, MapiAttachment, MapiRecipient, MapiProperty, MsgReader, MsgWriter, CommonMessagePropertyId
Aspose.Email.Foss.CfbCfbReader, CfbWriter, CfbDocument, CfbStorage, CfbStream, CfbNode

Framework Compatibility

TargetSupported
.NET 8.0
.NET 9.0
.NET Framework
.NET Standard 2.0/2.1

The library targets .NET 8.0 or later and uses no native dependencies — it runs identically on Windows, Linux, macOS, Docker containers, and serverless functions.


Next Steps