Have you tried adding the Microsoft.WindowsDesktop.App
framework like this this answer: https://github.com/dotnet/wpf/issues/871#issuecomment-501498045
That seems to work in my test.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to run the example shown in the Microsoft Windows Desktop 6 System.Printing documentation (URL: https://learn.microsoft.com/en-us/dotnet/api/system.printing.printticket?view=windowsdesktop-6.0) in a .NET 6 console application in Visual Studio 2022. In the Dependencies, I was able to add System.Printing.dll, ReachFramework.dll, and WindowsBase.dll. However, now when I run the app, it returns an exception:
as shown in the attachment. I tried adding Presentationnative_cor3.dll to the dependency references, but I get the message "The reference is invalid or unsupported". Is there any way to run this example in .NET 6?
Have you tried adding the Microsoft.WindowsDesktop.App
framework like this this answer: https://github.com/dotnet/wpf/issues/871#issuecomment-501498045
That seems to work in my test.