Installation

Windows

NuGet provides the easiest path to downloading and installing Aspose APIs for .NET on PCs.

Method 1: Install or Update Aspose.Slides from the NuGet Package Manager

  1. Open Microsoft Visual Studio.
  2. Create a simple console app or open an existing project.
  3. Go through Tools > NuGet package manager.
  4. Under Browse, search for Aspose Slides in the text field.

Aspose.Slides Installation from NuGet Package Manager - 1 5. Click Aspose.Slides.NET and then click Install.

  • If you want to update Aspose.Slides—assuming you installed it already—click Update instead.

The selected API gets downloaded and referenced in your project.

Method 2: Install or Update Aspose.Slides Through the Package Manager Console

This is how you reference Aspose.Slides API through the package manager console:

  1. Open Microsoft Visual Studio.
  2. Create a simple console app or open an existing project.
  3. Go through Tools > Library Package Manager > Package Manager Console. todo:image_alt_text
  4. Run this command: Install-Package Aspose.Slides.NET todo:image_alt_text The latest full release gets installed in your application.
  • Alternatively, you can add the -prerelease suffix to the command to specify that the latest release (hotfixes included) must be installed as well.

The Installing Aspose.Slides.NET tip appears around the bottom of the window. todo:image_alt_text

Once the download reaches completion, you should see some confirmation messages.

If you are not familiar with Aspose EULA, then you may want to read the license referenced in the URL.  todo:image_alt_text

In your application, you should see that Aspose.Slides has been successfully added and referenced. todo:image_alt_text

In the Package Manager Console, you can run the Update-Package Aspose.Slides.NET command to check for updates to the Aspose.Slides package. Updates (if found) get installed automatically. You can also use the -prerelease suffix to update the latest release.

Considerations When Running on a Shared Server Environment

We strongly recommend you run all Aspose .NET components with the Full Trust permission set because Aspose components sometimes need to access registry settings and files located in places other than the virtual directory—for example, when Aspose components have to read fonts.

Furthermore, Aspose.NET components are based on the core .NET system classes—and some of those classes also require Full Trust permission for operations in certain cases.

Internet Service Providers, which host multiple applications from different companies, mostly enforce the Medium Trust security level. In .NET 2.0 case, such a security level may result in constraints that affect Aspose.Slides' operations:

  • RegistryPermission is not available. This means you cannot access the registry, which is required to enumerate installed fonts when rendering documents.
  • FileIOPermission is restricted. This means you can only access files in your application’s virtual directory hierarchy. This also potentially means fonts cannot be read during export operations.

For the reasons above, we strongly recommend that you run Aspose.Slides on Full Trust permissions. If you use Medium trust, you might experience inconsistencies—some library features (rendering, for example) might not work when you perform certain tasks.

macOS

NuGet provides the easiest path to downloading and installing Aspose.Slides for .NET on macs.

Install Prerequisite

The System.Drawing namespace operates differently in macOS, so you have to install mono-libgdiplus.

In .NET 5 and previous versions, the System.Drawing.Common NuGet package works on Windows, Linux, and macOS. However, there are some platform differences. On Linux and macOS, the GDI+ functionality is implemented by the libgdiplus) library. This library is not installed by default in most Linux distributions and doesn’t support all the functionality of GDI+ on Windows and macOS. There are also platforms where libgdiplus is not available at all. To use types from the System.Drawing.Common package on Linux and macOS, you must install libgdiplus separately. For more information, see Install .NET on Linux or Install .NET on macOS.s

To install mono-libgdiplus separately on your mac, see this article from .NET documentation.

Install Aspose.Slides

  1. Open Visual Studio.
  2. Create a simple console app or open an existing project.
  3. Go through Project > Manage NuGet Packages… path-to-nuget-macos
  4. Type Aspose.Slides into the text field.
  5. Click Aspose.Slides for .NET and then click Add Package.
  6. Add a simple code snippet.
  7. Run the app.
  8. Open your project’s folder/bin/Debug/presentation_file_name.