From what I read System.Windows.MessageBox is available in .net core 5 links:
https://learn.microsoft.com/en-us/dotnet/api/system.windows.messagebox?view=net-5.0
Similar method to messageBox in .NET core
However when I try to use System.Windows.MessageBox I get the error: The type or namespace name 'MessageBox' does not exist in the namespace 'System.Windows'
Am I missing a setting?