I using following code to show OpenFileDialog
using RoslynPad, it complied and run, but no dialog appear, so the snippet keep running forever:
#r "framework:Microsoft.WindowsDesktop.App"
using System.Windows.Forms;
var fd = new OpenFileDialog
{
Filter = "Solution files (*.sln)|*.sln"
};
if (fd.ShowDialog() == DialogResult.OK)
Console.WriteLine(fd.FileName);
What is correct way to make OpenFileDialog
work with RoslynPad?
Environment:
- OS: Windows 10 Pro 64 bit (2004)
- RoslynPad: built from lastest master branch.
- .NET Core: 3.1.402