Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.HTML for .NET examples are open-source C# projects hosted in the aspose-html/Aspose.HTML-for-.NET GitHub repository. Use them to test document creation, loading, editing, data extraction, rendering, and conversion workflows before adding similar code to your own application.
For the smoothest setup, open the examples solution in Visual Studio, make sure nuget.org is enabled as a package source, build the project, and keep the repository Data folder together with the examples because many C# samples use those input files.
Before downloading and running the examples, make sure the development machine meets these requirements:
Aspose.HTML.dll in the example project.All Aspose.HTML for .NET examples are hosted in the Aspose.HTML for .NET GitHub repository.
You can clone the repository with Git:
1git clone https://github.com/aspose-html/Aspose.HTML-for-.NET.gitYou can also download the repository as a ZIP archive from GitHub:
1https://github.com/aspose-html/Aspose.HTML-for-.NET/archive/master.zipTo run the C# examples:
RunExamples.cs.The example project was originally created in Visual Studio 2013, and the solution files are compatible with Visual Studio 2010 SP1 and higher. Newer Visual Studio versions can also open and build the examples when the required .NET tooling and NuGet package restore are available.
The Data folder is required. It contains HTML, SVG, images, stylesheets, and other input files used by the C# examples. If the folder is missing, some examples may compile but fail at runtime because the source files cannot be found.
RunExamples.cs is the starting point for running selected examples. Open this file, uncomment the examples you want to execute, and build the project again if needed.
| Issue | Cause | Fix |
|---|---|---|
| NuGet packages are not restored | nuget.org is disabled, the machine is offline, or the build environment uses a different NuGet configuration. | Enable nuget.org, restore packages again, or manually reference Aspose.HTML.dll as described in
Installation. |
| Examples compile but fail at runtime with missing files | The Data folder was not downloaded, extracted, or copied together with the Examples project. | Download the full repository and keep the Data folder at the root of Examples. |
| No example appears to run | The target examples are still commented out in RunExamples.cs. | Open RunExamples.cs and uncomment the examples you want to execute. |
| Output differs on another machine or in Docker | Rendering can depend on fonts, native dependencies, file paths, and network access. | Check System Requirements and configure the runtime environment before comparing output. |
| Visual Studio asks to upgrade the project | The examples were originally created with an older Visual Studio version. | Let a modern Visual Studio version upgrade project metadata if prompted, or use a compatible Visual Studio version for legacy testing. |
If you want to add or improve an example, you can contribute to the repository. The examples and showcase projects are open source and can be used in your own applications.
To contribute:
If you have issues setting up or running the examples, contact the team through the Aspose.HTML Free Support Forum.
The C# examples are stored in the public aspose-html/Aspose.HTML-for-.NET GitHub repository.
Yes. Many examples use input files from the Data folder. Download the full repository and keep the Data folder together with the Examples project.
Yes. Open RunExamples.cs and uncomment only the example or group of examples you want to run.
Yes, but you must restore packages or add required DLL references before running them offline. The first build normally needs Internet access for NuGet package restore.
Yes. The examples are open-source sample projects intended to show how Aspose.HTML for .NET APIs can be used in C# applications.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.