Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update core-project-and-document-processing-library.md #526

Merged
merged 2 commits into from May 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.