How to use Spire.Doc on .NET Core

This program guide focus on helping you how to make Spire.Doc workable on Windows and Linux.

Starts from V 6.7.4, Spire.Doc supports .NET Core 2.0. Spire.Doc for netstandard2.0 uses System.Drawing.Common, which depends on Libgdiplus library. So when you use Spire.Doc on .NET core, you need to install Libgdiplus library.

On Windows, we recommend you to get Spire.Doc package via Nuget. The Libgdiplus library will be installed automatically.

How to use Spire.Doc on .NET Core

On Linux, you need to install Libgdiplus library independently. Please follow the below three steps to install it successfully.

Step1: Open xxxx.csproj file and write the code snippet into it.

<ItemGroup>
<PackageReference Include=”Spire.Doc” Version=”6.7.13”/>
</ItemGroup>

How to use Spire.Doc on .NET Core

Step 2. Execute "dotnet build" command on terminal window of Visual Studio Code. It will install Spire.Doc package.

How to use Spire.Doc on .NET Core

Step 3. Open terminal window on Linux and execute Libgdiplus library installation command, for example, the command on Linux Ubuntu is "sudo apt-get install libgdiplus".

How to use Spire.Doc on .NET Core

Then you can use Spire.Doc on .NET core.

If you have any question, please feel free to contact us.