We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15d9756 commit d8d5e04Copy full SHA for d8d5e04
mcs/class/System/System.IO/FileSystemWatcher.cs
@@ -123,10 +123,11 @@ void InitWatcher ()
123
124
string managed = Environment.GetEnvironmentVariable ("MONO_MANAGED_WATCHER");
125
int mode = 0;
126
+ bool ok = false;
127
+#if !UNITY_AOT
128
if (managed == null)
129
mode = InternalSupportsFSW ();
130
- bool ok = false;
131
switch (mode) {
132
case 1: // windows
133
ok = DefaultWatcher.GetInstance (out watcher);
@@ -149,6 +150,7 @@ void InitWatcher ()
149
150
watcher_handle = (watcher as CoreFXFileSystemWatcherProxy).NewWatcher (this);
151
break;
152
}
153
+#endif
154
155
if (mode == 0 || !ok) {
156
if (String.Compare (managed, "disabled", true) == 0)
0 commit comments