.NET version
7.0.403
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Don't know, it works in .NET Framework 4.6.2, but not in latest version of .NET Framework 4.8
Issue description
Run the unit test in the following solution. Notice that the unit test hangs on line 80 of UnitTest1.cs which is the InvokePattern.Invoke call on the FIle/Open... menu item. This makes it impossible to test any menu item using System.Automation?
Steps to reproduce
- on Windows 11 22H2 build 22621.2361
- Load this solution into VS 2022
- Run Test/Debug all tests
- wait for windows open file dialog to appear
- Notice it never disappears
- hit break in the debugger and you will see it is blocked on line 80 of UnitTest1.cs.
WinFormsApp1.zip
.NET version
7.0.403
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Don't know, it works in .NET Framework 4.6.2, but not in latest version of .NET Framework 4.8
Issue description
Run the unit test in the following solution. Notice that the unit test hangs on line 80 of UnitTest1.cs which is the InvokePattern.Invoke call on the FIle/Open... menu item. This makes it impossible to test any menu item using System.Automation?
Steps to reproduce
WinFormsApp1.zip