Permalink
Browse files

RavenDB-5325 trim .NET Core dependencies to minimum

  • Loading branch information...
1 parent 5d7dac5 commit 036ec44fb96c4140e3d19316b322835b9ab987a7 @lahma lahma committed Sep 23, 2016
@@ -25,8 +25,7 @@
},
"frameworks": {
- "netstandard1.6": {
- "imports": [ "dnxcore50" ],
+ "netstandard1.3": {
"buildOptions": {
"define": [ "DNXCORE50", "PORTABLE", "DOTNET" ]
}
@@ -24,13 +24,13 @@
},
"frameworks": {
- "netstandard1.6": {
- "imports": [ "dnxcore50" ],
+ "netstandard1.3": {
"buildOptions": {
"define": [ "DNXCORE50", "PORTABLE", "DOTNET" ]
},
"dependencies": {
- "System.Reflection.Extensions": "4.0.1"
+ "System.Reflection.Extensions": "4.0.1",
+ "System.Reflection.TypeExtensions": "4.1.0"
}
}
}
@@ -34,6 +34,17 @@
namespace Raven.Imports.Newtonsoft.Json.Utilities
{
+#if (DNXCORE50)
+ internal enum MemberTypes
+ {
+ Property = 0,
+ Field = 1,
+ Event = 2,
+ Method = 3,
+ Other = 4
+ }
+#endif
+
internal static class TypeExtensions
{
#if NETFX_CORE || PORTABLE
@@ -99,7 +110,7 @@ public static MethodInfo Method(this Delegate d)
public static MemberTypes MemberType(this MemberInfo memberInfo)
{
- return memberInfo.MemberType;
+ return memberInfo.MemberType();
}
public static bool ContainsGenericParameters(this Type type)
@@ -19,30 +19,36 @@
},
"dependencies": {
- "NETStandard.Library": "1.6.0",
-
"Sparrow": "3.5.0"
},
"frameworks": {
- "netstandard1.6": {
- "imports": "dnxcore50",
+ "netstandard1.3": {
"buildOptions": {
"define": [ "DNXCORE50", "PORTABLE", "DOTNET" ]
},
"dependencies": {
"Microsoft.CSharp": "4.0.1",
"System.Collections.NonGeneric": "4.0.1",
"System.Collections.Specialized": "4.0.1",
+ "System.Diagnostics.Tools": "4.0.1",
"Microsoft.Extensions.Configuration": "1.0.0",
"System.IO.Compression": "4.1.0",
+ "System.IO.FileSystem": "4.0.1",
+ "System.IO.FileSystem.Primitives": "4.0.1",
+ "System.Net.Http": "4.1.0",
+ "System.Net.Primitives": "4.0.11",
"System.Net.WebHeaderCollection": "4.0.1",
+ "System.Reflection": "4.1.0",
+ "System.Reflection.Extensions": "4.0.1",
"System.Reflection.TypeExtensions": "4.1.0",
"System.Security.Cryptography.Csp": "4.0.0",
"System.Security.Principal": "4.0.1",
"System.ServiceModel.Primitives": "4.1.0",
+ "System.Text.Encoding.Extensions": "4.0.11",
"System.Text.RegularExpressions": "4.1.0",
"System.Threading.Thread": "4.0.0",
+ "System.Threading.Timer": "4.0.1",
"System.Xml.XDocument": "4.0.11"
}
}
@@ -16,13 +16,11 @@
},
"dependencies": {
- "NETStandard.Library": "1.6.0",
-
"Raven.Abstractions": "3.5.0"
},
"frameworks": {
- "netstandard1.6": {
+ "netstandard1.3": {
"imports": [ "dnxcore50" ],
"buildOptions": {
"define": [ "DNXCORE50", "PORTABLE", "DOTNET" ]
@@ -33,7 +31,6 @@
"System.Linq.Queryable": "4.0.1",
"System.Diagnostics.Process": "4.1.0",
"System.IO.FileSystem.Primitives": "4.0.1",
- "System.IO.IsolatedStorage": "4.0.1",
"System.Net.Http": "4.1.0",
"System.Net.NameResolution": "4.0.0"
}
@@ -15,18 +15,20 @@
}
},
- "dependencies": {
- "NETStandard.Library": "1.6.0"
- },
-
"frameworks": {
- "netstandard1.6": {
- "imports": "dnxcore50",
+ "netstandard1.1": {
"buildOptions": {
"define": [ "DNXCORE50" ]
},
"dependencies": {
- "Microsoft.CSharp": "4.0.1"
+ "Microsoft.CSharp": "4.0.1",
+ "System.Collections": "4.0.11",
+ "System.Collections.Concurrent": "4.0.12",
+ "System.Diagnostics.Debug": "4.0.11",
+ "System.Globalization": "4.0.11",
+ "System.Linq": "4.1.0",
+ "System.Runtime.Extensions": "4.1.0",
+ "System.Threading": "4.0.11"
}
}
}
@@ -26,7 +26,6 @@
"frameworks": {
"netcoreapp1.0": {
- "imports": [ "dnxcore50" ],
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",

0 comments on commit 036ec44

Please sign in to comment.