Installation
Installation
This page covers installing Aspose.Email.Foss into a .NET project.
Prerequisites
| Requirement | Detail |
|---|---|
| .NET | 8.0 or later (dotnet --version to check) |
| NuGet | Included with the .NET SDK |
| OS | Windows, Linux, or macOS |
Install via NuGet CLI
dotnet add package Aspose.Email.FOSSInstall via Package Manager Console (Visual Studio)
dotnet add package Aspose.Email.FOSSInstall via PackageReference (csproj)
dotnet add package Aspose.Email.FOSSVerify 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 subjectIf you see the subject printed without errors, the package is installed correctly.
Namespaces
| Namespace | Contents |
|---|---|
Aspose.Email.Foss.Msg | MapiMessage, MapiAttachment, MapiRecipient, MapiProperty, MsgReader, MsgWriter, CommonMessagePropertyId |
Aspose.Email.Foss.Cfb | CfbReader, CfbWriter, CfbDocument, CfbStorage, CfbStream, CfbNode |
Framework Compatibility
| Target | Supported |
|---|---|
| .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
- Getting Started: Overview and quick-start example
- Developer Guide: MSG operations, properties, and attachments