| OLD | NEW |
| 1 This directory contains the C# Protocol Buffers runtime library. | 1 This directory contains the C# Protocol Buffers runtime library. |
| 2 | 2 |
| 3 Status: Beta - ready for external testing |
| 4 ========================================= |
| 5 |
| 3 Usage | 6 Usage |
| 4 ===== | 7 ===== |
| 5 | 8 |
| 6 The easiest way how to use C# protobufs is via the `Google.Protobuf` | 9 The easiest way how to use C# protobufs is via the `Google.Protobuf` |
| 7 NuGet package. Just add the NuGet package to your VS project. | 10 NuGet package. Just add the NuGet package to your VS project. |
| 8 | 11 |
| 9 You will also want to install the `Google.Protobuf.Tools` NuGet package, which | 12 Besides C# runtime library, the NuGet package also contains |
| 10 contains precompiled version of `protoc.exe` and a copy of well known `.proto` | 13 precompiled version of `protoc.exe` and a copy of well known `.proto` |
| 11 files under the package's `tools` directory. | 14 files under the package's `tools` directory. |
| 12 | 15 |
| 13 To generate C# files from your `.proto` files, invoke `protoc` with the | 16 To generate C# files from your `.proto` files, invoke `protoc` with the |
| 14 `--csharp_out` option. | 17 `--csharp_out` option. |
| 15 | 18 |
| 16 Supported platforms | 19 Supported platforms |
| 17 =================== | 20 =================== |
| 18 | 21 |
| 19 The runtime library is built as a portable class library, supporting: | 22 The runtime library is built as a portable class library, supporting: |
| 20 | 23 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 - The old code was based on immutable message types and builders for | 61 - The old code was based on immutable message types and builders for |
| 59 them | 62 them |
| 60 - The old code did not support maps or `oneof` | 63 - The old code did not support maps or `oneof` |
| 61 - The old code had its own JSON representation, whereas the new code | 64 - The old code had its own JSON representation, whereas the new code |
| 62 uses the standard protobuf JSON representation | 65 uses the standard protobuf JSON representation |
| 63 - The old code had no notion of the "well-known types" which have | 66 - The old code had no notion of the "well-known types" which have |
| 64 special support in the new code | 67 special support in the new code |
| 65 - The old project supported some older platforms (such as older | 68 - The old project supported some older platforms (such as older |
| 66 versions of Silverlight) which are not currently supported in the | 69 versions of Silverlight) which are not currently supported in the |
| 67 new project | 70 new project |
| OLD | NEW |