Bringing 12-year-old WPF code to .NET Core 3