Using in .Net Core

You can easily use Document .Net in .Net Core 1.1 or higher. It's completely written in C# managed code and compiled under .Net Framework and .Net Core.

Let us say, you have just created a .Net Core project. To configure Document .Net in your prject, make these steps:

  1. Add the reference to SautinSoft.Document.dll.
  2. Add dependencies through Nuget (optional).

1. Add the reference to SautinSoft.Document.dll:

You may add the reference to the SautinSoft.Document assembly by two ways:

1. Nuget (fast way):

(Solution Explorer->right click by "References"->Manage Nuget Packages...->In the tab "Browse" type "SautinSoft" and find the "SautinSoft.Document")
Add SautinSoft.Document.dll via Nuget.

2. Old good way by adding the reference:

First of all, download the Document .Net package (document_net.zip) from the SautinSoft website.
Unzip document_net.zip and find the assembly file "SautinSoft.Document.dll".
(At the Solution Explorer->right click by "References"->Add Reference...->Browse "SautinSoft.Document.dll")
Add reference to SautinSoft.Document.dll.

Note:

SautinSoft.Document.dll compiled for .Net Core is located inside (document_net.zip->Document .Net X.X\Bin\Net Core X.X) folder.

SautinSoft.Document.dll compiled for .Net Framework is located inside (document_net.zip->Document .Net X.X\Bin\Net X.X) folder.

2. Add dependencies through Nuget (optional):

If you have added the SautinSoft.Document.dll into your project in previous step 1 through Nuget, all dependencies are already installed automatically and therefore simply skip this step.

In case of you have added the reference to the SautinSoft.Document.dll by the old way (Solution Explorer->right click by "References"->Add Reference...), please add these dependencies using Nuget:

  • System.IO.Packaging, 4.4.0.
  • System.Text.Encoding.CodePages, 4.4.0.
  • ZKWeb.System.Drawing, 3.0.0.

For example, to add "System.IO.Packaging, 4.4.0:
(Solution Explorer->right click by "References"->Manage Nuget Packages...->In the tab "Browse" type "System.IO.Packaging" and find the "System.IO.Packaging", select version "4.4.0")

Well done!

© SautinSoft 2020