According to this the "Clipboard" class should be available in .Net Core 3.1 in the "System.Windows" namespace.
However in my .Net Core 3.1 project when using System.Windows.Clipboard
or
using System.Windows;
void Method()
{
Clipboard
}
in both cases I get an error saying "The type or namespace 'Clipboard', etc.".
I don't understand how to use the Clipboard class from the linked MSDN page in my .Net Core 3.1 application.
EDIT:
My question isn't answered by the linked question but by this answer (whose question is linked in the linked question, lol): https://stackoverflow.com/a/59759631/14340444