Browse Source

Add runtime directives for Rx

Oren Novotny 9 năm trước cách đây
mục cha
commit
0f8091c707

+ 7 - 0
Rx.NET/Source/System.Reactive.Experimental/Properties/System.Reactive.Experimental.rd.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
+  <Library>
+    <Assembly Name="System.Reactive.Experimental" Browse="Required All" Dynamic="Required All" />
+    <!-- TODO optimize this for types that actually need reflection -->
+  </Library>
+</Directives>

+ 4 - 1
Rx.NET/Source/System.Reactive.Experimental/project.json

@@ -18,7 +18,10 @@
     "publicSign": true,
     "define": [ "SIGNED" ],
     "nowarn": [ "CS1591" ],
-    "xmlDoc": true
+    "xmlDoc": true,
+    "embed": {
+      "includeFiles": "Properties/System.Reactive.Experimental.rd.xml"
+    }
   },
   
   "configurations": {

+ 7 - 0
Rx.NET/Source/System.Reactive.Linq/Properties/System.Reactive.Linq.rd.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
+  <Library>
+    <Assembly Name="System.Reactive.Linq" Browse="Required All" Dynamic="Required All" />
+    <!-- TODO optimize this for types that actually need reflection -->
+  </Library>
+</Directives>

+ 3 - 0
Rx.NET/Source/System.Reactive.Linq/project.json

@@ -26,6 +26,9 @@
         "Reactive/Internal/Observers.cs",
         "Reactive/Internal/Producer.cs"
       ]
+    },
+    "embed": {
+      "includeFiles": "Properties/System.Reactive.Linq.rd.xml"
     }
   },
   

+ 7 - 0
Rx.NET/Source/System.Reactive.PlatformServices/Properties/System.Reactive.PlatformServices.rd.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
+  <Library>
+    <Assembly Name="System.Reactive.PlatformServices" Activate="Required All" Browse="Required All" Dynamic="Required All" />
+    <!-- TODO optimize this for types that actually need reflection -->
+  </Library>
+</Directives>

+ 3 - 0
Rx.NET/Source/System.Reactive.PlatformServices/project.json

@@ -21,6 +21,9 @@
     "xmlDoc": true,
     "compile": {
       "exclude": [ "Strings_PlatformServices.Designer.cs" ]
+    },
+    "embed": {
+      "includeFiles": "Properties/System.Reactive.PlatformServices.rd.xml"
     }
   },
   

+ 7 - 0
Rx.NET/Source/System.Reactive.Providers/Properties/System.Reactive.Providers.rd.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
+  <Library>
+    <Assembly Name="System.Reactive.Providers" Browse="Required All" Dynamic="Required All" />
+    <!-- TODO optimize this for types that actually need reflection -->
+  </Library>
+</Directives>

+ 4 - 1
Rx.NET/Source/System.Reactive.Providers/project.json

@@ -18,7 +18,10 @@
     "publicSign": true,
     "define": [ "SIGNED" ],
     "nowarn": [ "CS1591" ],
-    "xmlDoc": true
+    "xmlDoc": true,
+    "embed": {
+      "includeFiles": "Properties/System.Reactive.Providers.rd.xml"
+    }
   },
   
   "configurations": {

+ 7 - 0
Rx.NET/Source/System.Reactive.Runtime.Remoting/Properties/System.Reactive.Runtime.Remoting.rd.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
+  <Library>
+    <Assembly Name="System.Reactive.Experimental" Browse="Required All" Dynamic="Required All" />
+    <!-- TODO optimize this for types that actually need reflection -->
+  </Library>
+</Directives>

+ 4 - 1
Rx.NET/Source/System.Reactive.Runtime.Remoting/project.json

@@ -18,7 +18,10 @@
     "publicSign": true,
     "define": [ "SIGNED" ],
     "nowarn": [ "CS1591" ],
-    "xmlDoc": true
+    "xmlDoc": true,
+    "embed": {
+      "includeFiles": "Properties/System.Reactive.Runtime.Remoting.rd.xml"
+    }
   },
   
   "configurations": {