New to Telerik UI for WinForms? Download free 30-day trial

Telerik Document Processing Libraries and WinForms .NET Core application.

Since the Telerik Document Processing Libraries depend on some types from WPF using any library in a WinForms application requires making changes in the project file. This is not necessary in the .NET framework projects where you can just add the references in Visual Studio.

By default, when creating a WinForms .NET Core application the Microsoft.WindowsDesktop.App.WindowsForms framework is added. This does not include the required WPF references.

core-project-and-document-processing-library001

To add the required references, you need to:

1. Edit the project file:

core-project-and-document-processing-library002

2. Under the UseWindowsForms line, add the UseWPF tag. The file should look like this:

core-project-and-document-processing-library003

3. Save and reload the file. Now, you should see the Microsoft.WindowsDesktop.App in the frameworks node:

core-project-and-document-processing-library004

This is all that is required and now you can continue with your application.

The Telerik Document Processing libraries are available in two versions:

  • A version for .Net Framework 4.0 or later

  • A version for .Net Standard 2.0

Both versions are available as NuGet packages. Make sure that the Assemblies for .NET Framework are used in a WinForms project.

In this article