Application is not supported in a Windows Presentation Foundation (WPF) project December 29, 2023 by Tarik Had same issue in VS. I closed and restarted VS and no longer got the error.