diff options
author | Jon Skeet <skeet@pobox.com> | 2016-07-14 22:01:47 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2016-07-14 22:16:35 +0100 |
commit | b5ce5251fd9450162f12fae93b35f31c5319a793 (patch) | |
tree | f14ee7aae7ae4959aea825360423e79d50d8d325 /csharp/src/Google.Protobuf.JsonDump/Program.cs | |
parent | 5e0de1ebee532dc2ff4ce88ec2d7bee90817825c (diff) | |
download | protobuf-b5ce5251fd9450162f12fae93b35f31c5319a793.tar.gz protobuf-b5ce5251fd9450162f12fae93b35f31c5319a793.tar.bz2 protobuf-b5ce5251fd9450162f12fae93b35f31c5319a793.zip |
Move to dotnet cli for building, and .NET Core (netstandard1.0) as target platform (#1727)
This also updates the version number to 3.0.0-beta4
Diffstat (limited to 'csharp/src/Google.Protobuf.JsonDump/Program.cs')
-rw-r--r-- | csharp/src/Google.Protobuf.JsonDump/Program.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/csharp/src/Google.Protobuf.JsonDump/Program.cs b/csharp/src/Google.Protobuf.JsonDump/Program.cs index 99e60e90..296b2f3f 100644 --- a/csharp/src/Google.Protobuf.JsonDump/Program.cs +++ b/csharp/src/Google.Protobuf.JsonDump/Program.cs @@ -32,6 +32,7 @@ using System;
using System.IO;
+using System.Reflection;
namespace Google.Protobuf.ProtoDump
{
@@ -55,7 +56,7 @@ namespace Google.Protobuf.ProtoDump Console.Error.WriteLine("Unable to load type {0}.", args[0]);
return 1;
}
- if (!typeof(IMessage).IsAssignableFrom(type))
+ if (!typeof(IMessage).GetTypeInfo().IsAssignableFrom(type))
{
Console.Error.WriteLine("Type {0} doesn't implement IMessage.", args[0]);
return 1;
|