Skip to content

Commit

Permalink
RavenDB-5325 trim .NET Core dependencies to minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
lahma committed Sep 23, 2016
1 parent 5d7dac5 commit 036ec44
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 22 deletions.
3 changes: 1 addition & 2 deletions Bundles/Raven.Client.Authorization/project.json
Expand Up @@ -25,8 +25,7 @@
},

"frameworks": {
"netstandard1.6": {
"imports": [ "dnxcore50" ],
"netstandard1.3": {
"buildOptions": {
"define": [ "DNXCORE50", "PORTABLE", "DOTNET" ]
}
Expand Down
6 changes: 3 additions & 3 deletions Bundles/Raven.Client.UniqueConstraints/project.json
Expand Up @@ -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"
}
}
}
Expand Down
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
14 changes: 10 additions & 4 deletions Raven.Abstractions/project.json
Expand Up @@ -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"
}
}
Expand Down
5 changes: 1 addition & 4 deletions Raven.Client.Lightweight/project.json
Expand Up @@ -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" ]
Expand All @@ -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"
}
Expand Down
16 changes: 9 additions & 7 deletions Raven.Sparrow/Sparrow/project.json
Expand Up @@ -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"
}
}
}
Expand Down
1 change: 0 additions & 1 deletion Raven.Tests.Core/project.json
Expand Up @@ -26,7 +26,6 @@

"frameworks": {
"netcoreapp1.0": {
"imports": [ "dnxcore50" ],
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
Expand Down

0 comments on commit 036ec44

Please sign in to comment.