Install Aspose.HTML for .NET

Install Aspose.HTML for .NET when your C# application needs to create, load, edit, parse, save, or convert HTML-related documents. The recommended installation method is NuGet, because it keeps package references and dependencies inside your project file.

For most .NET projects, install Aspose.HTML with NuGet. Use dotnet add package Aspose.HTML from the command line, Install-Package Aspose.HTML in Visual Studio Package Manager Console, or the NuGet Package Manager GUI.

Install Aspose.HTML with NuGet

NuGet is the preferred way to add Aspose.HTML for .NET to a C# project. It records the package reference in the project, restores dependencies automatically, and makes package updates easier.

Use .NET CLI

Use .NET CLI when you work from a terminal, automate project setup, or manage SDK-style projects.

1dotnet add package Aspose.HTML

To update the package reference later, run the same command again or specify an exact version:

1dotnet add package Aspose.HTML --version <version>

Without --version, the command resolves the latest available package version from the configured NuGet sources and updates the project reference.

Use Package Manager Console

Use Package Manager Console when you work inside Visual Studio and prefer NuGet commands.

1Install-Package Aspose.HTML

To include prerelease builds when they are available, add the -Prerelease option:

1Install-Package Aspose.HTML -Prerelease

To update an existing package reference, use:

1Update-Package Aspose.HTML

Use NuGet Package Manager GUI

To install Aspose.HTML for .NET from the Visual Studio NuGet UI:

  1. Open your solution or project in Visual Studio.
  2. Choose Tools > NuGet Package Manager > Manage NuGet Packages for Solution.
  3. Open the Browse tab and search for Aspose.HTML.
  4. Select the Aspose.HTML package.
  5. Choose the target project and click Install.
  6. Build the project to restore packages and verify the reference.

Install Aspose.HTML with MSI or DLL References

Use MSI or direct DLL references only when NuGet is not available in your environment, for example in restricted build systems or legacy projects. NuGet remains the safer default for most new .NET applications.

To install with MSI or DLL references:

  1. Download the Aspose.HTML for .NET package from the releases page.
  2. Run the MSI installer or extract the downloaded package.
  3. Open your solution or project in Visual Studio.
  4. Add references to the required Aspose.HTML assemblies.
  5. Build the project and verify that namespaces such as Aspose.Html resolve correctly.

Common Installation Issues

IssueCauseFix
dotnet add package Aspose.HTML cannot find the packageThe project uses a private NuGet source, offline feed, or a NuGet configuration that does not include nuget.org.Check configured package sources and make sure the feed that contains Aspose.HTML is available to the project or CI environment.
The namespace Aspose.Html is not resolvedThe package was not installed into the selected project, restore did not complete, or the wrong project is active in Visual Studio.Install the package into the target project, run package restore, rebuild the solution, and check that the project file contains the package reference.
An older package version remains after updateThe project or solution may pin an exact package version, use a lock file, or restore from a cached source.Check the package version in the project file, update the reference explicitly, clear or refresh package caches if needed, and restore again.
Installation succeeds but rendering output differs on Linux or DockerThe package is installed, but the runtime image may not include fonts or native dependencies required for rendering.Review System Requirements and configure Linux or Docker dependencies before testing rendering workflows.

FAQ

What is the recommended way to install Aspose.HTML for .NET?

NuGet is recommended for most projects. It records the Aspose.HTML package reference in the project file, restores dependencies automatically, and makes updates easier than manual DLL references.

Can I install Aspose.HTML for .NET from the command line?

Yes. Use dotnet add package Aspose.HTML for SDK-style projects or Install-Package Aspose.HTML in the Visual Studio Package Manager Console.

When should I use the MSI installer or direct DLL references?

Use MSI or direct DLL references only when NuGet is unavailable, for example in restricted build environments or legacy projects that cannot restore packages normally.

How do I install a specific package version?

Use dotnet add package Aspose.HTML --version <version> from the command line, or select the required version in the NuGet Package Manager UI.

Do I need to install anything else after adding the NuGet package?

For basic document loading and conversion workflows, the package reference is the main installation step. For Linux, macOS, Docker, or hosted server deployments, also check runtime dependencies, fonts, permissions, and supported frameworks in System Requirements.