You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the library. This is great idea!
I tried the sample code:
var desktops = VirtualDesktop.GetDesktops();
// Get Virtual Desktop for specific window
var desktop = VirtualDesktop.FromHwnd(Process.GetCurrentProcess().MainWindowHandle);
It compiles but when it arrive to the VirtualDesktop.GetDesktops(); it throws an exception:
System.InvalidOperationException: 'The current SynchronizationContext may not be used as a TaskScheduler.'
System.InvalidOperationException
HResult=0x80131509
Message=The current SynchronizationContext may not be used as a TaskScheduler.
Source=mscorlib
StackTrace:
at System.Threading.Tasks.SynchronizationContextTaskScheduler..ctor()
I'm using VS 2019 on Win 10....all latest version. I'm also using the latest version of your library
Thank you for your help
w.
The text was updated successfully, but these errors were encountered:
Hello,
Thanks for the library. This is great idea!
I tried the sample code:
It compiles but when it arrive to the VirtualDesktop.GetDesktops(); it throws an exception:
System.InvalidOperationException
HResult=0x80131509
Message=The current SynchronizationContext may not be used as a TaskScheduler.
Source=mscorlib
StackTrace:
at System.Threading.Tasks.SynchronizationContextTaskScheduler..ctor()
I'm using VS 2019 on Win 10....all latest version. I'm also using the latest version of your library
Thank you for your help
w.
The text was updated successfully, but these errors were encountered: