Skip to content

Commit

Permalink
Merge pull request #526 from telerik/dessyordanova-patch-1
Browse files Browse the repository at this point in the history
Update core-project-and-document-processing-library.md
  • Loading branch information
DinkoK committed May 9, 2024
2 parents a03e58d + 9d329eb commit 892c07c
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions core/core-project-and-document-processing-library.md
Expand Up @@ -8,27 +8,37 @@ published: True
position: 5
---

# Document Processing Library and WinForms .NET Core application.
# Telerik Document Processing Libraries and WinForms .NET Core application.

Since the Document Processing Library is depends on some types from WPF using the 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 refences in Visual Studio.
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](images/core-project-and-document-processing-library001.png)

To add the required references you need to edit the project file.
To add the required references, you need to:

1\. Edit the project file:

![core-project-and-document-processing-library002](images/core-project-and-document-processing-library002.png)

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

![core-project-and-document-processing-library003](images/core-project-and-document-processing-library003.png)

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

![core-project-and-document-processing-library004](images/core-project-and-document-processing-library004.png)

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

>important 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](https://docs.telerik.com/devtools/document-processing/getting-started/installation/nuget-packages). Make sure that the [Assemblies for .NET Framework](https://docs.telerik.com/devtools/document-processing/getting-started/getting-started#assemblies-for-net-framework) are used in a WinForms project.


0 comments on commit 892c07c

Please sign in to comment.