Following code
OpenFileDialog openFileDialog = new OpenFileDialog();
if (openFileDialog.ShowDialog() == true)
{
}
works fine in a WPF project on .NET Framework but i cannot show a dialog in .NET Core.
The dialog flickers open for a split second then the program exits with: has exited with code -2146232797 (0x80131623).
This happens on any WPF .NET Core project but works fine in any .NET Framework project.
User contributions licensed under CC BY-SA 3.0