[wasm] Mark System.IO.FileSystem.Watcher APIs as unsupported on Browser (#41682)
authorMitchell Hwang <mitchhwang1418@gmail.com>
Fri, 4 Sep 2020 19:57:31 +0000 (15:57 -0400)
committerGitHub <noreply@github.com>
Fri, 4 Sep 2020 19:57:31 +0000 (21:57 +0200)
* [wasm] System.IO.FileSystem.Watcher enable platform attributes

* Mark System.IO.FileSystem.Watcher unsupported at assembly level

Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>
src/libraries/System.IO.FileSystem.Watcher/Directory.Build.props

index 63f02a0..ce244cb 100644 (file)
@@ -2,5 +2,7 @@
   <Import Project="..\Directory.Build.props" />
   <PropertyGroup>
     <StrongNameKeyId>Microsoft</StrongNameKeyId>
+    <IncludePlatformAttributes>true</IncludePlatformAttributes>
+    <UnsupportedOSPlatforms>browser</UnsupportedOSPlatforms>
   </PropertyGroup>
 </Project>
\ No newline at end of file