diff options
author | Jon Skeet <jonskeet@google.com> | 2015-05-14 09:11:57 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-05-14 09:11:57 +0100 |
commit | 734393d0f9e1f746f4bd228f709c5b1142faa16d (patch) | |
tree | 3cb105db805c328c1823d1c191301f2fb45397af /csharp/src | |
parent | 2d9b1c592ff7319ee9d6520c9df4838087522e05 (diff) | |
download | protobuf-734393d0f9e1f746f4bd228f709c5b1142faa16d.tar.gz protobuf-734393d0f9e1f746f4bd228f709c5b1142faa16d.tar.bz2 protobuf-734393d0f9e1f746f4bd228f709c5b1142faa16d.zip |
Make generate_protos.sh Windows-friendly.
To my surprise, executing generate_protos.sh used the version of Bash installed with Git for Windows by default.
After a few modifications to detect the most appropriate protoc to use, this worked pretty simply.
This change also:
- adds generation of the address book tutorial proto,
- fixes the addressbook.proto to specify proto2 explicitly (to avoid a warning from protoc; I don't think we want warnings...)
- fixes the addressbook.proto C# namespace (which I thought I'd done before, but apparently hadn't)
- includes the regenerated UnittestCustomOptions.cs apart from the DescriptorProtoFIle => Descriptor change
Diffstat (limited to 'csharp/src')
-rw-r--r-- | csharp/src/ProtocolBuffers.Test/TestProtos/UnittestCustomOptions.cs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestCustomOptions.cs b/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestCustomOptions.cs index 29ba8607..4334bfed 100644 --- a/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestCustomOptions.cs +++ b/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestCustomOptions.cs @@ -62,12 +62,10 @@ namespace Google.ProtocolBuffers.TestProtos { #endregion #region Extensions public const int FileOpt1FieldNumber = 7736974; - [global::System.CLSCompliant(false)] public static pb::GeneratedExtensionBase<ulong> FileOpt1; public const int MessageOpt1FieldNumber = 7739036; public static pb::GeneratedExtensionBase<int> MessageOpt1; public const int FieldOpt1FieldNumber = 7740936; - [global::System.CLSCompliant(false)] public static pb::GeneratedExtensionBase<ulong> FieldOpt1; public const int FieldOpt2FieldNumber = 7753913; public static pb::GeneratedExtensionBase<int> FieldOpt2; @@ -86,20 +84,16 @@ namespace Google.ProtocolBuffers.TestProtos { public const int Int64OptFieldNumber = 7705542; public static pb::GeneratedExtensionBase<long> Int64Opt; public const int Uint32OptFieldNumber = 7704880; - [global::System.CLSCompliant(false)] public static pb::GeneratedExtensionBase<uint> Uint32Opt; public const int Uint64OptFieldNumber = 7702367; - [global::System.CLSCompliant(false)] public static pb::GeneratedExtensionBase<ulong> Uint64Opt; public const int Sint32OptFieldNumber = 7701568; public static pb::GeneratedExtensionBase<int> Sint32Opt; public const int Sint64OptFieldNumber = 7700863; public static pb::GeneratedExtensionBase<long> Sint64Opt; public const int Fixed32OptFieldNumber = 7700307; - [global::System.CLSCompliant(false)] public static pb::GeneratedExtensionBase<uint> Fixed32Opt; public const int Fixed64OptFieldNumber = 7700194; - [global::System.CLSCompliant(false)] public static pb::GeneratedExtensionBase<ulong> Fixed64Opt; public const int Sfixed32OptFieldNumber = 7698645; public static pb::GeneratedExtensionBase<int> Sfixed32Opt; |