Skip to content

Commit

Permalink
Merge pull request grpc#7580 from jtattermusch/netcore_nuget_to_rtm
Browse files Browse the repository at this point in the history
Update .NET core dependencies to RTM
  • Loading branch information
jtattermusch authored Aug 2, 2016
2 parents b507780 + 0a5a0ca commit baa8c31
Show file tree
Hide file tree
Showing 37 changed files with 89 additions and 69 deletions.
6 changes: 3 additions & 3 deletions src/csharp/Grpc.Auth/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"net45"
],
"dependencies": {
"Microsoft.NETCore.Portable.Compatibility": "1.0.1-rc2-24027",
"NETStandard.Library": "1.5.0-rc2-24027",
"System.Threading.Tasks": "4.0.11-rc2-24027"
"Microsoft.NETCore.Portable.Compatibility": "1.0.1",
"NETStandard.Library": "1.6.0",
"System.Threading.Tasks": "4.0.11"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Grpc.Core.Tests/AppDomainUnloadTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace Grpc.Core.Tests
{
public class AppDomainUnloadTest
{
#if NETSTANDARD1_5
#if NETCOREAPP1_0
[Test]
[Ignore("Not supported for CoreCLR")]
public void AppDomainUnloadHookCanCleanupAbandonedCall()
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Grpc.Core.Tests/NUnitMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static int Main(string[] args)
{
// Make logger immune to NUnit capturing stdout and stderr to workaround https://github.com/nunit/nunit/issues/1406.
GrpcEnvironment.SetLogger(new TextWriterLogger(Console.Error));
#if NETSTANDARD1_5
#if NETCOREAPP1_0
return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
#else
return new AutoRun().Execute(args);
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Grpc.Core.Tests/SanityTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace Grpc.Core.Tests
public class SanityTest
{
// TODO: make sanity test work for CoreCLR as well
#if !NETSTANDARD1_5
#if !NETCOREAPP1_0
/// <summary>
/// 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,
Expand Down
5 changes: 3 additions & 2 deletions src/csharp/Grpc.Core.Tests/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,13 @@
},
"frameworks": {
"net45": { },
"netstandard1.5": {
"netcoreapp1.0": {
"imports": [
"portable-net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
"Microsoft.NETCore.App": "1.0.0",
"NETStandard.Library": "1.6.0"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions src/csharp/Grpc.Core/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"portable-net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027",
"System.Threading.Thread": "4.0.0-rc2-24027"
"NETStandard.Library": "1.6.0",
"System.Threading.Thread": "4.0.0"
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/csharp/Grpc.Examples.MathClient/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@
},
"frameworks": {
"net45": { },
"netstandard1.5": {
"netcoreapp1.0": {
"imports": [
"portable-net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
"Microsoft.NETCore.App": "1.0.0",
"NETStandard.Library": "1.6.0"
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/csharp/Grpc.Examples.MathServer/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@
},
"frameworks": {
"net45": { },
"netstandard1.5": {
"netcoreapp1.0": {
"imports": [
"portable-net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
"Microsoft.NETCore.App": "1.0.0",
"NETStandard.Library": "1.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Grpc.Examples.Tests/NUnitMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static int Main(string[] args)
{
// Make logger immune to NUnit capturing stdout and stderr to workaround https://github.com/nunit/nunit/issues/1406.
GrpcEnvironment.SetLogger(new TextWriterLogger(Console.Error));
#if NETSTANDARD1_5
#if NETCOREAPP1_0
return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
#else
return new AutoRun().Execute(args);
Expand Down
5 changes: 3 additions & 2 deletions src/csharp/Grpc.Examples.Tests/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@
},
"frameworks": {
"net45": { },
"netstandard1.5": {
"netcoreapp1.0": {
"imports": [
"portable-net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
"Microsoft.NETCore.App": "1.0.0",
"NETStandard.Library": "1.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Grpc.Examples/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"portable-net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
"NETStandard.Library": "1.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Grpc.HealthCheck.Tests/NUnitMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static int Main(string[] args)
{
// Make logger immune to NUnit capturing stdout and stderr to workaround https://github.com/nunit/nunit/issues/1406.
GrpcEnvironment.SetLogger(new TextWriterLogger(Console.Error));
#if NETSTANDARD1_5
#if NETCOREAPP1_0
return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
#else
return new AutoRun().Execute(args);
Expand Down
5 changes: 3 additions & 2 deletions src/csharp/Grpc.HealthCheck.Tests/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@
},
"frameworks": {
"net45": { },
"netstandard1.5": {
"netcoreapp1.0": {
"imports": [
"portable-net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
"Microsoft.NETCore.App": "1.0.0",
"NETStandard.Library": "1.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Grpc.HealthCheck/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"portable-net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
"NETStandard.Library": "1.6.0"
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/csharp/Grpc.IntegrationTesting.Client/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@
},
"frameworks": {
"net45": { },
"netstandard1.5": {
"netcoreapp1.0": {
"imports": [
"portable-net45",
"net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
"Microsoft.NETCore.App": "1.0.0",
"NETStandard.Library": "1.6.0"
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/csharp/Grpc.IntegrationTesting.QpsWorker/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@
},
"frameworks": {
"net45": { },
"netstandard1.5": {
"netcoreapp1.0": {
"imports": [
"portable-net45",
"net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
"Microsoft.NETCore.App": "1.0.0",
"NETStandard.Library": "1.6.0"
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/csharp/Grpc.IntegrationTesting.Server/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@
},
"frameworks": {
"net45": { },
"netstandard1.5": {
"netcoreapp1.0": {
"imports": [
"portable-net45",
"net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
"Microsoft.NETCore.App": "1.0.0",
"NETStandard.Library": "1.6.0"
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/csharp/Grpc.IntegrationTesting.StressClient/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@
},
"frameworks": {
"net45": { },
"netstandard1.5": {
"netcoreapp1.0": {
"imports": [
"portable-net45",
"net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
"Microsoft.NETCore.App": "1.0.0",
"NETStandard.Library": "1.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Grpc.IntegrationTesting/GeneratedClientTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class GeneratedClientTest
TestService.TestServiceClient unimplementedClient = new UnimplementedTestServiceClient();

// TODO: replace Moq by some mocking library with CoreCLR support.
#if !NETSTANDARD1_5
#if !NETCOREAPP1_0
[Test]
public void ExpandedParamOverloadCanBeMocked()
{
Expand Down
10 changes: 5 additions & 5 deletions src/csharp/Grpc.IntegrationTesting/InteropClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private async Task<ChannelCredentials> CreateCredentialsAsync()

if (options.TestCase == "jwt_token_creds")
{
#if !NETSTANDARD1_5
#if !NETCOREAPP1_0
var googleCredential = await GoogleCredential.GetApplicationDefaultAsync();
Assert.IsTrue(googleCredential.IsCreateScopedRequired);
credentials = ChannelCredentials.Create(credentials, googleCredential.ToCallCredentials());
Expand All @@ -157,7 +157,7 @@ private async Task<ChannelCredentials> CreateCredentialsAsync()

if (options.TestCase == "compute_engine_creds")
{
#if !NETSTANDARD1_5
#if !NETCOREAPP1_0
var googleCredential = await GoogleCredential.GetApplicationDefaultAsync();
Assert.IsFalse(googleCredential.IsCreateScopedRequired);
credentials = ChannelCredentials.Create(credentials, googleCredential.ToCallCredentials());
Expand Down Expand Up @@ -395,7 +395,7 @@ public static void RunJwtTokenCreds(TestService.TestServiceClient client)

public static async Task RunOAuth2AuthTokenAsync(TestService.TestServiceClient client, string oauthScope)
{
#if !NETSTANDARD1_5
#if !NETCOREAPP1_0
Console.WriteLine("running oauth2_auth_token");
ITokenAccess credential = (await GoogleCredential.GetApplicationDefaultAsync()).CreateScoped(new[] { oauthScope });
string oauth2Token = await credential.GetAccessTokenForRequestAsync();
Expand All @@ -421,7 +421,7 @@ public static async Task RunOAuth2AuthTokenAsync(TestService.TestServiceClient c

public static async Task RunPerRpcCredsAsync(TestService.TestServiceClient client, string oauthScope)
{
#if !NETSTANDARD1_5
#if !NETCOREAPP1_0
Console.WriteLine("running per_rpc_creds");
ITokenAccess googleCredential = await GoogleCredential.GetApplicationDefaultAsync();

Expand Down Expand Up @@ -731,7 +731,7 @@ private static Metadata CreateClientCompressionMetadata(bool compressed)
// extracts the client_email field from service account file used for auth test cases
private static string GetEmailFromServiceAccountFile()
{
#if !NETSTANDARD1_5
#if !NETCOREAPP1_0
string keyFile = Environment.GetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS");
Assert.IsNotNull(keyFile);
var jobject = JObject.Parse(File.ReadAllText(keyFile));
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Grpc.IntegrationTesting/NUnitMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static int Main(string[] args)
{
// Make logger immune to NUnit capturing stdout and stderr to workaround https://github.com/nunit/nunit/issues/1406.
GrpcEnvironment.SetLogger(new TextWriterLogger(Console.Error));
#if NETSTANDARD1_5
#if NETCOREAPP1_0
return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
#else
return new AutoRun().Execute(args);
Expand Down
7 changes: 4 additions & 3 deletions src/csharp/Grpc.IntegrationTesting/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,15 @@
"System.IO": ""
}
},
"netstandard1.5": {
"netcoreapp1.0": {
"imports": [
"portable-net45",
"net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027",
"System.Linq.Expressions": "4.0.11-rc2-24027"
"Microsoft.NETCore.App": "1.0.0",
"NETStandard.Library": "1.6.0",
"System.Linq.Expressions": "4.1.0"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions templates/src/csharp/Grpc.Auth/project.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
"net45"
],
"dependencies": {
"Microsoft.NETCore.Portable.Compatibility": "1.0.1-rc2-24027",
"NETStandard.Library": "1.5.0-rc2-24027",
"System.Threading.Tasks": "4.0.11-rc2-24027"
"Microsoft.NETCore.Portable.Compatibility": "1.0.1",
"NETStandard.Library": "1.6.0",
"System.Threading.Tasks": "4.0.11"
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions templates/src/csharp/Grpc.Core.Tests/project.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
},
"frameworks": {
"net45": { },
"netstandard1.5": {
"netcoreapp1.0": {
"imports": [
"portable-net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
"Microsoft.NETCore.App": "1.0.0",
"NETStandard.Library": "1.6.0"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions templates/src/csharp/Grpc.Core/project.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"portable-net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027",
"System.Threading.Thread": "4.0.0-rc2-24027"
"NETStandard.Library": "1.6.0",
"System.Threading.Thread": "4.0.0"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
},
"frameworks": {
"net45": { },
"netstandard1.5": {
"netcoreapp1.0": {
"imports": [
"portable-net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
"Microsoft.NETCore.App": "1.0.0",
"NETStandard.Library": "1.6.0"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
},
"frameworks": {
"net45": { },
"netstandard1.5": {
"netcoreapp1.0": {
"imports": [
"portable-net45"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027"
"Microsoft.NETCore.App": "1.0.0",
"NETStandard.Library": "1.6.0"
}
}
}
Expand Down
Loading

0 comments on commit baa8c31

Please sign in to comment.