aboutsummaryrefslogtreecommitdiff
path: root/csharp
Commit message (Collapse)AuthorAgeFilesLines
* Google.Protobuf should target net45Jan Tattermusch2017-09-121-1/+1
|
* Update C# generated file for addressbook.protoFeng Xiao2017-09-111-11/+47
|
* Merge remote-tracking branch 'origin/3.4.x' into mergemasterJisi Liu2017-08-185-149/+320
|\
| * Merge branch 'master' into 3.4.xBo Yang2017-08-052-4/+6
| |\
| * | Bump csharp versionJisi Liu2017-08-021-1/+1
| | |
| * | Merge from masterJisi Liu2017-07-253-226/+274
| | |
| * | Update version number for 3.4.0Jisi Liu2017-07-241-1/+1
| | |
| * | Merge master into 3.4.xJisi Liu2017-07-1838-475/+510
| |\ \
| * | | Update csharp and php descriptorJisi Liu2017-07-183-146/+316
| | | |
* | | | Detect invalid tags with a field number of 0 in C#Jon Skeet2017-08-112-2/+16
| |_|/ |/| | | | | | | | | | | | | | | | | | | | Previously we only rejected the tag if the tag itself was 0, i.e. field=0, type=varint. The type doesn't matter: field 0 is always invalid. This removes the last of the C# conformance failures.
* | | Update the comment on the message_type to cover what it should be.Thomas Van Lenten2017-07-262-4/+6
| | |
* | | Merge pull request #3281 from BSBandme/ConformanceTestYilunChongYilun Chong2017-07-243-226/+274
|\ \ \ | | | | | | | | Proto2 test message support to conformance test
| * | | delete backup filesYilun Chong2017-07-051-155/+0
| | | |
| * | | fix php failing list and csharp generated protoYilun Chong2017-07-052-211/+370
| | | |
| * | | add some test proto2 supported, add js proto2 supported, fixed some errorYilun Chong2017-06-301-5/+5
| | | |
| * | | change php objc nodejs csharp rubyYilun Chong2017-06-291-16/+15
| | | |
| * | | fix csharp conformance testYilun Chong2017-06-281-1/+1
| | | |
| * | | fix csharp conformance testYilun Chong2017-06-281-16/+16
| | | |
| * | | fix csharpYilun Chong2017-06-281-15/+15
| | | |
| * | | add csharp supportYilun Chong2017-06-282-12/+57
| | | |
* | | | Merge pull request #3375 from TeBoring/3.3.xPaul Yang2017-07-191-1/+1
|\ \ \ \ | |_|_|/ |/| | | Merge 3.3.x into master
| * | | Merge 3.3.x into masterBo Yang2017-07-181-1/+1
| |\ \ \
| | * | | Update version number to 3.3.2Bo Yang2017-06-212-2/+2
| | | | |
| | * | | Update version number to 3.3.1Feng Xiao2017-05-082-2/+2
| | | |/ | | |/|
* | / | Support PHP generic services (#3269)Matt A2017-07-181-60/+89
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add php_generic_services option * Generate PHP generic services * Respect namespaces for generated PHP services * Test PHP generated services * Rename PHP generator service method doc comment function * Correct phpdoc service method case * Test namespaced PHP generic services * Always use the FQCN for PHP generic service input/output * Add generated_service_test to php test.sh * Add php service test protos to CI * Add php service files to php_EXTRA_DIST * Use Interface suffix for php generic services
* | | Fix repository URL in C# project fileJon Skeet2017-07-131-1/+1
| | |
* | | C#: Implement IReadOnlyDictionary<K,V> in MapField<K,V>Jean-Rémy Bancel2017-07-122-0/+27
| | |
* | | Ensure leaveOpen is true when writing to a bufferJon Skeet2017-07-045-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | Note that the compatibility tests have had to cahnge as well, to cope with internal changes. (The test project has access to internals in the main project.) Fixes #3209.
* | | Make Any easier to work with in C#Jon Skeet2017-07-032-7/+64
| |/ |/| | | | | | | | | | | - Add a TryUnpack method which doesn't throw if the type is wrong - Make GetTypeName public for easier determination of the message type Fixes #3294.
* | Add new file option php_namespace. (#3162)Paul Yang2017-06-051-55/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add new file option php_namespace. Use this option to change the namespace of php generated classes. Default is empty. When this option is empty, the package name will be used for determining the namespace. * Uncomment commented tests * Revert gdb test change * Update csharp descriptor. * Add test for empty php_namespace.
* | update csharp README and fix .NET 3.5 build errorJohn Brock2017-05-252-44/+23
| |
* | Add IncludeSource in csproj as per review commentsJon Skeet2017-05-241-0/+1
| |
* | Convert C# projects to MSBuild (csproj) formatJon Skeet2017-05-2427-354/+247
|/ | | | | | | | | | | | | | | | | This has one important packaging change: the netstandard version now depends (implicitly) on netstandard1.6.1 rather than on individual packages. This is the preferred style of dependency, and shouldn't affect any users - see http://stackoverflow.com/questions/42946951 for details. The tests are still NUnit, but NUnit doesn't support "dotnet test" yet; the test project is now an executable using NUnitLite. (When NUnit supports dotnet test, we can adapt to it.) Note that the project will now only work in Visual Studio 2017 (and Visual Studio Code, and from the command line with the .NET Core 1.0.0 SDK); Visual Studio 2015 does *not* support this project file format.
* Update version number and changelog for 3.3.0Feng Xiao2017-04-052-2/+2
|
* Fix C++ build for down-integration.Feng Xiao2017-03-293-47/+86
|
* Merge pull request #2884 from anandolee/masterJie Luo2017-03-273-19/+78
|\ | | | | Add FormatEnumsAsIntegers support for Json Format. Scale JsonFormatter.Settings for multi options.
| * Add FormatEnumAsInt support for Json Format. And scale ↵Jie Luo2017-03-243-19/+78
| | | | | | | | JsonFormatter.Settings to multiple options.
* | Add file option php_class_prefix (#2849)Paul Yang2017-03-171-56/+88
|/ | | | This option will be prepended to generated classes of all messages in the containing file.
* There might be duplicated enum values when allow_alias is true. Add ↵Jie Luo2017-02-284-90/+234
| | | | PreferredAlias into OriginalNameAttribute to remove the duplication (#2727)
* Updating READMEJohn Brock2017-02-231-2/+52
| | | | | - Adding more detail on running tests - Adding info about the status of .NET 3.5 support and how to enable .NET 3.5
* Upgrading test-related librariesJohn Brock2017-02-231-2/+2
| | | | | NUnit 3.4.0 —> 3.6.0 dotnet-test-nunit 3.4.0-alpha-2 —> 3.4.0-beta-3
* Fixes for .NET 3.5 compatibilityJohn Brock2017-02-2312-13/+152
| | | | | * Changing DOTNET35 framework symbols in preprocessor directives to the default built-in value of NET35. * Adding extension method StreamExtension.CopyTo for .NET 3.5 because it didn’t exist until .NET 4, and adding associated unit tests.
* Merge pull request #2701 from anandolee/masterJie Luo2017-02-1336-0/+7889
|\ | | | | Add csharp compatibility tests against v3.0.0
| * Add csharp compatibility tests against v3.0.0 and run on Travis.Jie Luo2017-02-101-0/+102
| |
| * Add proto and test files for csharp compatibility tests against v3.0.0.Jie Luo2017-02-0935-0/+7787
| | | | | | | | All the files are copied from 3.0.0 (JosnFormaterTest was deleted)
* | Fix CopyTo argument validationJon Skeet2017-02-062-2/+18
| | | | | | | | Fixes #2669.
* | Merge 3.2.x branch into master (#2648)Paul Yang2017-01-314-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Down-integrate internal changes to github. * Update conformance test failure list. * Explicitly import used class in nano test to avoid random test fail. * Update _GNUC_VER to use the correct implementation of atomic operation on Mac. * maps_test.js: check whether Symbol is defined before using it (#2524) Symbol is not yet available on older versions of Node.js and so this test fails with them. This change just directly checks whether Symbol is available before we try to use it. * Added well_known_types_embed.cc to CLEANFILES so that it gets cleaned up * Updated Makefile.am to fix out-of-tree builds * Added Bazel genrule for generating well_known_types_embed.cc In pull request #2517 I made this change for the CMake and autotools builds but forgot to do it for the Bazel build. * Update _GNUC_VER to use the correct implementation of atomic operation on Mac. * Add new js file in extra dist. * Bump version number to 3.2.0 * Fixed issue with autoloading - Invalid paths (#2538) * PHP fix int64 decoding (#2516) * fix int64 decoding * fix int64 decoding + tests * Fix int64 decoding on 32-bit machines. * Fix warning in compiler/js/embed.cc embed.cc: In function ‘std::string CEscape(const string&)’: embed.cc:51:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < str.size(); ++i) { ^ * Fix include in auto-generated well_known_types_embed.cc Restore include style fix (e3da722) that has been trampled by auto-generation of well_known_types_embed.cc * Fixed cross compilations with the Autotools build Pull request #2517 caused cross compilations to start failing, because the js_embed binary was being built to run on the target platform instead of on the build machine. This change updates the Autotools build to use the AX_PROG_CXX_FOR_BUILD macro to find a suitable compiler for the build machine and always use that when building js_embed. * Minor fix for autocreated object repeated fields and maps. - If setting/clearing a repeated field/map that was objects, check the class before checking the autocreator. - Just to be paranoid, don’t mutate within copy/mutableCopy for the autocreated classes to ensure there is less chance of issues if someone does something really crazy threading wise. - Some more tests for the internal AutocreatedArray/AutocreatedDictionary classes to ensure things are working as expected. - Add Xcode 8.2 to the full_mac_build.sh supported list. * Fix generation of extending nested messages in JavaScript (#2439) * Fix generation of extending nested messages in JavaScript * Added missing test8.proto to build * Fix generated code when there is no namespace but there is enum definition. * Decoding unknown field should succeed. * Add embed.cc in src/Makefile.am to fix dist check. * Fixed "make distcheck" for the Autotools build To make the test pass I needed to fix out-of-tree builds and update EXTRA_DIST and CLEANFILES. * Remove redundent embed.cc from src/Makefile.am * Update version number to 3.2.0-rc.1 (#2578) * Change protoc-artifacts version to 3.2.0-rc.1 * Update version number to 3.2.0rc2 * Update change logs for 3.2.0 release. * Update php README * Update upb, fixes some bugs (including a hash table problem). (#2611) * Update upb, fixes some bugs (including a hash table problem). * Ruby: added a test for the previous hash table corruption. Verified that this triggers the bug in the currently released version. * Ruby: bugfix for SEGV. * Ruby: removed old code for dup'ing defs. * Reverting deployment target to 7.0 (#2618) The Protobuf library doesn’t require the 7.1 deployment target so reverting it back to 7.0 * Fix typo that breaks builds on big-endian (#2632) * Bump version number to 3.2.0
* | C#: Implement IReadOnlyList<T> in RepeatedField<T>Jon Skeet2017-01-301-0/+3
|/ | | | | | | | We explicitly don't do this when targeting .NET 3.5, where the interface doesn't exist. No implementation is required, as we're already implementing everything we need for IList<T>.
* Add Oneof custom options testJie Luo2017-01-273-116/+116
|
* Support custom options in C#Jon Skeet2017-01-1914-10/+3689
| | | | | | | | | | | | This consists of: - Changing the codegen for the fixed set of options protos, to parse unknown fields instead of skipping them - Add a new CustomOptions type in the C# support library - Expose CustomOptions properties from the immutable proto wrappers in the support library Only single-value options are currently supported, and fetching options values requires getting the type right and knowing the field number. Both of these can be addressed at a later time. Fixes #2143, at least as a first pass.