Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The official Aspose.SVG for .NET GitHub repository contains runnable C# examples for creating, loading, editing, converting, rendering, and vectorizing SVG content. These are example projects, not XUnit documentation tests.
Clone the repository:
1git clone https://github.com/aspose-svg/Aspose.SVG-for-.NET.gitAlternatively, download the repository ZIP archive and extract it locally.
The repository currently contains the following useful locations:
| Location | What it contains |
|---|---|
Examples/Aspose.SVG.Examples.CSharp.sln | Visual Studio solution for the principal C# examples |
Examples/CSharp/CSharp.csproj | Console example project targeting .NET 6.0 |
Examples/CSharp/RunExamples.cs | Entry point that selects the examples to execute |
Examples/Data | Input SVG and other data files used by examples |
Docs | Short developer-oriented articles included with the repository |
Before running the examples:
CSharp.csproj project currently targets .NET 6.0.Aspose.SVG NuGet package.Examples/Data directory together with the project files. The examples use input documents from that directory and create output folders as they run.The main console project starts in Examples/CSharp/RunExamples.cs. Its Main() method calls examples for conversion, document creation and loading, saving, text vectorization, DOM editing, selectors, XPath, and traversal.
Before running the project, review the calls in Main() and keep enabled only the examples you want to execute. This is especially useful when you want to examine a single conversion result or avoid running samples that require an input, license, or network resource not needed for your task.
From the repository root, build the principal C# example project:
1dotnet build Examples/CSharp/CSharp.csprojAfter selecting the calls to execute in RunExamples.cs, run the project:
1dotnet run --project Examples/CSharp/CSharp.csprojConversion and save examples write generated files under Examples/output, while their input files are read from Examples/Data.
Examples/Aspose.SVG.Examples.CSharp.sln in Visual Studio.Examples/CSharp/RunExamples.cs and select the example calls that you want to run.CSharp console project and inspect generated files in the output directories used by the selected examples.The main project includes examples for common Aspose.SVG tasks:
LoadSaveConvert – create or load SVG documents, save files, convert SVG to PDF, XPS, and image formats, render documents, and vectorize text.WorkingWithSVGDocument – edit SVG content, query nodes with CSS selectors and XPath, inspect content, and traverse elements.GettingStarted – apply an Aspose.SVG license in code.To add or improve an example, fork the Aspose.SVG for .NET repository, make your change in a branch, and submit a pull request.
For questions about running examples or using the API, visit the Aspose.SVG support forum.
Want to try an SVG task without running C# code? SVG Free Web Applications let you convert, merge, optimize, vectorize, and encode SVG files in a browser.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.