-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileSystemWatch EnableRaisingEvents not supported on MonoVM #63185
Comments
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsDescriptionour code: fileWatcher = new FileSystemWatcher(watchPath, "*" + watchFilter);
fileWatcher.NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.Size;
fileWatcher.Changed += FileWatcher_Changed;
fileWatcher.EnableRaisingEvents = true; Reproduction Steps.net6.0 sdk Expected behaviorwork correctly Actual behaviorthrow exception System.PlatformNotSupportedException: This API is specific to the way in which Windows handles asynchronous I/O, and is not supported on this platform. Regression?No response Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
I don't think we hooked up the ThreadPoolBoundHandle stuff in Mono in 6.0. @lateralusX @steveisok this is probably going to show up in a number of libraries tests on Windows in 7.0 |
Probably the same as #34582, so it's a limitation in the portable thread pool used by Mono. |
Description
our code:
Reproduction Steps
.net6.0 sdk
windows
Expected behavior
work correctly
Actual behavior
throw exception
System.PlatformNotSupportedException: This API is specific to the way in which Windows handles asynchronous I/O, and is not supported on this platform.
at System.Threading.ThreadPoolBoundHandle.BindHandle(SafeHandle handle)
at System.IO.FileSystemWatcher.StartRaisingEvents()
at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()
at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)
at UnrealInit.RestartWatcher..ctor(Boolean bForceRestartWhenPlaying)
at UnrealInit.PluginLoader.Start()
at UnrealInit.PluginLoader.Init()
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: