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)
Install-Package Aspose.Email.FossInstall 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 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