Skip to content
Snippets Groups Projects
Commit 317b8acf authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

migrate everything to netstandard1.5

parent 474a574b
No related branches found
No related tags found
No related merge requests found
Showing
with 121 additions and 71 deletions
...@@ -18,14 +18,14 @@ ...@@ -18,14 +18,14 @@
}, },
"frameworks": { "frameworks": {
"net45": { }, "net45": { },
"dotnet54": { "netstandard1.5": {
"imports": [ "imports": [
"net45" "net45"
], ],
"dependencies": { "dependencies": {
"Microsoft.CSharp": "4.0.1-beta-23516", "Microsoft.NETCore.Portable.Compatibility": "1.0.1-rc2-24027",
"Microsoft.NETCore.Portable.Compatibility": "1.0.1-beta-23516", "NETStandard.Library": "1.5.0-rc2-24027",
"System.Threading.Tasks": "4.0.11-beta-23516" "System.Threading.Tasks": "4.0.11-rc2-24027"
} }
} }
} }
......
...@@ -40,7 +40,7 @@ namespace Grpc.Core.Tests ...@@ -40,7 +40,7 @@ namespace Grpc.Core.Tests
{ {
public class AppDomainUnloadTest public class AppDomainUnloadTest
{ {
#if DOTNET5_4 #if NETSTANDARD1_5
[Test] [Test]
[Ignore("Not supported for CoreCLR")] [Ignore("Not supported for CoreCLR")]
public void AppDomainUnloadHookCanCleanupAbandonedCall() public void AppDomainUnloadHookCanCleanupAbandonedCall()
......
...@@ -49,7 +49,7 @@ namespace Grpc.Core.Tests ...@@ -49,7 +49,7 @@ namespace Grpc.Core.Tests
{ {
// Make logger immune to NUnit capturing stdout and stderr to workaround https://github.com/nunit/nunit/issues/1406. // Make logger immune to NUnit capturing stdout and stderr to workaround https://github.com/nunit/nunit/issues/1406.
GrpcEnvironment.SetLogger(new TextWriterLogger(Console.Error)); GrpcEnvironment.SetLogger(new TextWriterLogger(Console.Error));
#if DOTNET5_4 #if NETSTANDARD1_5
return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In); return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
#else #else
return new AutoRun().Execute(args); return new AutoRun().Execute(args);
......
...@@ -45,7 +45,8 @@ namespace Grpc.Core.Tests ...@@ -45,7 +45,8 @@ namespace Grpc.Core.Tests
{ {
public class SanityTest public class SanityTest
{ {
#if !DOTNET5_4 // TODO: make sanity test work for CoreCLR as well
#if !NETSTANDARD1_5
/// <summary> /// <summary>
/// Because we depend on a native library, sometimes when things go wrong, the /// Because we depend on a native library, sometimes when things go wrong, the
/// entire NUnit test process crashes. To be able to track down problems better, /// entire NUnit test process crashes. To be able to track down problems better,
......
...@@ -10,23 +10,26 @@ ...@@ -10,23 +10,26 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"Grpc.Core": "0.14.0-anexperiment", "Grpc.Core": {
"version": "0.0.1",
"taget": "project"
},
"Newtonsoft.Json": "8.0.3", "Newtonsoft.Json": "8.0.3",
"NUnit": "3.2.0", "NUnit": "3.2.0",
"NUnitLite": "3.2.0-*" "NUnitLite": "3.2.0-*"
}, },
"frameworks": { "frameworks": {
"net45": { }, "net45": { },
"dotnet54": { "netstandard1.5": {
"imports": [ "imports": [
"portable-net45" "portable-net45"
], ],
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "NETStandard.Library": "1.5.0-rc2-24027"
"type": "platform",
"version": "1.0.0-rc2-23931"
}
} }
} }
},
"runtimes": {
"win7-x64": { }
} }
} }
...@@ -353,7 +353,7 @@ namespace Grpc.Core ...@@ -353,7 +353,7 @@ namespace Grpc.Core
if (!hooksRegistered) if (!hooksRegistered)
{ {
// TODO(jtattermusch): register shutdownhooks for CoreCLR as well // TODO(jtattermusch): register shutdownhooks for CoreCLR as well
#if !DOTNET5_4 #if !NETSTANDARD1_5
AppDomain.CurrentDomain.ProcessExit += ShutdownHookHandler; AppDomain.CurrentDomain.ProcessExit += ShutdownHookHandler;
AppDomain.CurrentDomain.DomainUnload += ShutdownHookHandler; AppDomain.CurrentDomain.DomainUnload += ShutdownHookHandler;
......
...@@ -117,7 +117,7 @@ namespace Grpc.Core.Internal ...@@ -117,7 +117,7 @@ namespace Grpc.Core.Internal
private static string GetAssemblyPath() private static string GetAssemblyPath()
{ {
var assembly = typeof(NativeExtension).GetTypeInfo().Assembly; var assembly = typeof(NativeExtension).GetTypeInfo().Assembly;
#if DOTNET5_4 #if NETSTANDARD1_5
// Assembly.EscapedCodeBase does not exist under CoreCLR, but assemblies imported from a nuget package // Assembly.EscapedCodeBase does not exist under CoreCLR, but assemblies imported from a nuget package
// don't seem to be shadowed by DNX-based projects at all. // don't seem to be shadowed by DNX-based projects at all.
return assembly.Location; return assembly.Location;
...@@ -136,7 +136,7 @@ namespace Grpc.Core.Internal ...@@ -136,7 +136,7 @@ namespace Grpc.Core.Internal
#endif #endif
} }
#if !DOTNET5_4 #if !NETSTANDARD1_5
private static bool IsFileUri(string uri) private static bool IsFileUri(string uri)
{ {
return uri.ToLowerInvariant().StartsWith(Uri.UriSchemeFile); return uri.ToLowerInvariant().StartsWith(Uri.UriSchemeFile);
......
...@@ -53,7 +53,7 @@ namespace Grpc.Core.Internal ...@@ -53,7 +53,7 @@ namespace Grpc.Core.Internal
static PlatformApis() static PlatformApis()
{ {
#if DOTNET5_4 #if NETSTANDARD1_5
isLinux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux); isLinux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
isMacOSX = RuntimeInformation.IsOSPlatform(OSPlatform.OSX); isMacOSX = RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
......
...@@ -30,24 +30,13 @@ ...@@ -30,24 +30,13 @@
}, },
"frameworks": { "frameworks": {
"net45": { }, "net45": { },
"dotnet54": { "netstandard1.5": {
"imports": [ "imports": [
"portable-net45" "portable-net45"
], ],
"dependencies": { "dependencies": {
"Microsoft.CSharp": "4.0.1-beta-23516", "NETStandard.Library": "1.5.0-rc2-24027",
"System.Collections": "4.0.11-beta-23516", "System.Threading.Thread": "4.0.0-rc2-24027"
"System.Collections.Concurrent": "4.0.11-beta-23516",
"System.Console": "4.0.0-beta-23516",
"System.Linq": "4.0.1-beta-23516",
"System.Threading": "4.0.11-beta-23516",
"System.Threading.Thread": "4.0.0-beta-23516",
"System.Reflection": "4.1.0-beta-23516",
"System.Text.Encoding": "4.0.11-beta-23516",
"System.Text.RegularExpressions": "4.0.11-beta-23516",
"System.IO": "4.0.11-beta-23516",
"System.IO.FileSystem": "4.0.1-beta-23516",
"System.Runtime.InteropServices.RuntimeInformation": "4.0.0-beta-23516"
} }
} }
} }
......
...@@ -10,20 +10,23 @@ ...@@ -10,20 +10,23 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"Grpc.Examples": "1.0.0" "Grpc.Examples": {
"version": "1.0.0",
"taget": "project"
}
}, },
"frameworks": { "frameworks": {
"net45": { }, "net45": { },
"dotnet54": { "netstandard1.5": {
"imports": [ "imports": [
"portable-net45" "portable-net45"
], ],
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "NETStandard.Library": "1.5.0-rc2-24027"
"type": "platform",
"version": "1.0.0-rc2-23931"
}
} }
} }
},
"runtimes": {
"win7-x64": { }
} }
} }
...@@ -10,20 +10,23 @@ ...@@ -10,20 +10,23 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"Grpc.Examples": "1.0.0" "Grpc.Examples": {
"version": "1.0.0",
"taget": "project"
}
}, },
"frameworks": { "frameworks": {
"net45": { }, "net45": { },
"dotnet54": { "netstandard1.5": {
"imports": [ "imports": [
"portable-net45" "portable-net45"
], ],
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "NETStandard.Library": "1.5.0-rc2-24027"
"type": "platform",
"version": "1.0.0-rc2-23931"
}
} }
} }
},
"runtimes": {
"win7-x64": { }
} }
} }
...@@ -49,7 +49,7 @@ namespace Grpc.Examples.Tests ...@@ -49,7 +49,7 @@ namespace Grpc.Examples.Tests
{ {
// Make logger immune to NUnit capturing stdout and stderr to workaround https://github.com/nunit/nunit/issues/1406. // Make logger immune to NUnit capturing stdout and stderr to workaround https://github.com/nunit/nunit/issues/1406.
GrpcEnvironment.SetLogger(new TextWriterLogger(Console.Error)); GrpcEnvironment.SetLogger(new TextWriterLogger(Console.Error));
#if DOTNET5_4 #if NETSTANDARD1_5
return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In); return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
#else #else
return new AutoRun().Execute(args); return new AutoRun().Execute(args);
......
...@@ -10,22 +10,25 @@ ...@@ -10,22 +10,25 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"Grpc.Examples": "1.0.0", "Grpc.Examples": {
"version": "1.0.0",
"taget": "project"
},
"NUnit": "3.2.0", "NUnit": "3.2.0",
"NUnitLite": "3.2.0-*" "NUnitLite": "3.2.0-*"
}, },
"frameworks": { "frameworks": {
"net45": { }, "net45": { },
"dotnet54": { "netstandard1.5": {
"imports": [ "imports": [
"portable-net45" "portable-net45"
], ],
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "NETStandard.Library": "1.5.0-rc2-24027"
"type": "platform",
"version": "1.0.0-rc2-23931"
}
} }
} }
},
"runtimes": {
"win7-x64": { }
} }
} }
...@@ -4,7 +4,10 @@ ...@@ -4,7 +4,10 @@
}, },
"dependencies": { "dependencies": {
"Grpc.Core": "0.0.1", "Grpc.Core": {
"version": "0.0.1",
"taget": "project"
},
"Google.Protobuf": "3.0.0-beta3" "Google.Protobuf": "3.0.0-beta3"
}, },
"frameworks": { "frameworks": {
...@@ -14,15 +17,12 @@ ...@@ -14,15 +17,12 @@
"System.IO": "" "System.IO": ""
} }
}, },
"dotnet54": { "netstandard1.5": {
"imports": [ "imports": [
"portable-net45" "portable-net45"
], ],
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "NETStandard.Library": "1.5.0-rc2-24027"
"type": "platform",
"version": "1.0.0-rc2-23931"
}
} }
} }
} }
......
...@@ -49,7 +49,7 @@ namespace Grpc.HealthCheck.Tests ...@@ -49,7 +49,7 @@ namespace Grpc.HealthCheck.Tests
{ {
// Make logger immune to NUnit capturing stdout and stderr to workaround https://github.com/nunit/nunit/issues/1406. // Make logger immune to NUnit capturing stdout and stderr to workaround https://github.com/nunit/nunit/issues/1406.
GrpcEnvironment.SetLogger(new TextWriterLogger(Console.Error)); GrpcEnvironment.SetLogger(new TextWriterLogger(Console.Error));
#if DOTNET5_4 #if NETSTANDARD1_5
return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In); return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
#else #else
return new AutoRun().Execute(args); return new AutoRun().Execute(args);
......
...@@ -10,22 +10,25 @@ ...@@ -10,22 +10,25 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"Grpc.HealthCheck": "0.0.1", "Grpc.HealthCheck": {
"version": "0.0.1",
"taget": "project"
},
"NUnit": "3.2.0", "NUnit": "3.2.0",
"NUnitLite": "3.2.0-*" "NUnitLite": "3.2.0-*"
}, },
"frameworks": { "frameworks": {
"net45": { }, "net45": { },
"dotnet54": { "netstandard1.5": {
"imports": [ "imports": [
"portable-net45" "portable-net45"
], ],
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "NETStandard.Library": "1.5.0-rc2-24027"
"type": "platform",
"version": "1.0.0-rc2-23931"
}
} }
} }
},
"runtimes": {
"win7-x64": { }
} }
} }
...@@ -26,12 +26,12 @@ ...@@ -26,12 +26,12 @@
"System.IO": "" "System.IO": ""
} }
}, },
"dotnet54": { "netstandard1.5": {
"imports": [ "imports": [
"portable-net45" "portable-net45"
], ],
"dependencies": { "dependencies": {
"Microsoft.CSharp": "4.0.1-beta-23516" "NETStandard.Library": "1.5.0-rc2-24027"
} }
} }
} }
......
...@@ -10,9 +10,24 @@ ...@@ -10,9 +10,24 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"Grpc.IntegrationTesting": "1.0.0" "Grpc.IntegrationTesting": {
"version": "1.0.0",
"taget": "project"
}
}, },
"frameworks": { "frameworks": {
"net45": { } "net45": { },
"netstandard1.5": {
"imports": [
"portable-net45",
"net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
}
}
},
"runtimes": {
"win7-x64": { }
} }
} }
...@@ -10,9 +10,24 @@ ...@@ -10,9 +10,24 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"Grpc.IntegrationTesting": "1.0.0" "Grpc.IntegrationTesting": {
"version": "1.0.0",
"taget": "project"
}
}, },
"frameworks": { "frameworks": {
"net45": { } "net45": { },
"netstandard1.5": {
"imports": [
"portable-net45",
"net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
}
}
},
"runtimes": {
"win7-x64": { }
} }
} }
...@@ -10,9 +10,24 @@ ...@@ -10,9 +10,24 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"Grpc.IntegrationTesting": "1.0.0" "Grpc.IntegrationTesting": {
"version": "1.0.0",
"taget": "project"
}
}, },
"frameworks": { "frameworks": {
"net45": { } "net45": { },
"netstandard1.5": {
"imports": [
"portable-net45",
"net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
}
}
},
"runtimes": {
"win7-x64": { }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment