New to Telerik Document Processing? Download free 30-day trial

Console app with .Net Core

Product Version Product Author
2020.1.218 Telerik Document Processing for .Net Core Dimitar Karamfilov

Problem

You need to create a console application using the latest .Net Core version. In this case the assemblies for WPF or WinForms would not work because they depend on assemblies available in the Desktop compatibility pack. You may get an exception that the PresentationCore or System.Windows.Size assemblies are missing as well.

Solution

When you need to create a console application, reference the .Net Standard assemblies. They do not depend on the Windows types. The .Net standard assemblies do not have the word 'Windows' in their names. They are also available as NuGet packages.

In this article