aboutsummaryrefslogtreecommitdiff
path: root/csharp
Commit message (Collapse)AuthorAgeFilesLines
* Replace repo links.Feng Xiao2018-08-226-11/+11
|
* Support creating FileDescriptors dynamically from binary data.Jon Skeet2018-08-206-40/+168
| | | | Related to #658 and #5007.
* Update generated descriptors.integrationFeng Xiao2018-08-082-39/+33
|
* Merge branch '3.6.x' into merge-3-6-xAdam Cozzette2018-08-012-2/+2
|\
| * Updated version numbers to 3.6.1Adam Cozzette2018-07-272-2/+2
| |
* | Give a specific category to each test. (#4965)Paul Yang2018-07-272-27/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Give a unique category to each test. This change introduce a TestCategory enum to ConformanceRequest. Existing tests are divided into three categories: binary format test, json format test and json format (ignore unknown when parsing) test. For the previous two categories, there is no change to existing testee programs. For tests with the last category, testee programs should either enable ignoring unknown field during json parsing or skip the test. * Fix python test * Fix java * Fix csharp * Update document * Update csharp generated code
* | Fix C# nuget build on Kokoro (#4912)Jan Tattermusch2018-07-181-1/+1
| | | | | | | | * upgrade dotnet SDK to 2.1.3 on kokoro linux
* | Enable ignoring unknown in json parsing in php (#4839)Paul Yang2018-07-091-9/+38
| | | | | | | | | | | | | | | | | | | | * Enable ignoring unknown in json parsing in php * Update generated descriptor files * Update failure list for other languages. * Remove unnecessary php files
* | implement IComparable and comparison operators on Timestamp (#4318)Warren Falk2018-07-092-1/+205
| |
* | Merge pull request #4827 from acozzette/merge-3-6-xAdam Cozzette2018-06-253-6/+2
|\ \ | | | | | | Merge 3.6.x branch into master
| * | Merge branch '3.6.x' into merge-3-6-xAdam Cozzette2018-06-253-6/+2
| |\|
| | * Removed duplicate using statement from ReflectionUtil.csAdam Cozzette2018-05-291-4/+0
| | |
| | * Update version number to 3.6.0Jisi Liu2018-05-142-2/+2
| | |
* | | Remove protoc conditional properties (#4817)Sydney Acksman2018-06-251-14/+9
| | | | | | | | | | | | | | | | | | * Remove protoc conditional properties * Fix duplicate brace
* | | Remove the executable bit from several source code filesSebastian Schuberth2018-06-2513-0/+0
|/ / | | | | | | This potentially avoids compiler warnings.
* | Add msbuild targets to C# tools for protoc compilers (#4648)Sydney Acksman2018-06-212-0/+18
| | | | | | | | | | | | * Added props to C# tools * Add targets file to makefile.am
* | enable source link for csharp (#4179)Cameron Taggart2018-05-142-3/+5
|/
* Add file option php_metadata_namespace and ruby_package (#4609)Paul Yang2018-05-111-57/+124
|
* Add VS2017 optional component dependency details to the C# readme (#4128)David Chennells2018-05-031-0/+6
| | | Add mention to the "Build" section of the ReadMe of the requirement of installing an optional component to VS2017.
* Fix to allow AOT compilers to play nicely with reflectionJon Skeet2018-04-272-18/+47
| | | | | | | | | | | | | | | | | | | With this fix, Unity using IL2CPP should work with one of two approaches: - Call `FileDescriptor.ForceReflectionInitialization<T>` for every enum present in generated code (including oneof case enums) - Ensure that IL2CPP uses the same code for int and any int-based enums The former approach is likely to be simpler, unless IL2CPP changes its default behavior. We *could* potentially generate the code automatically, but that makes me slightly uncomfortable in terms of generating code that's only relevant in one specific scenario. It would be reasonably easy to write a tool (separate from protoc) to generate the code required for any specific set of assemblies, so that Unity users can include it in their application. We can always decide to change to generate it automatically later.
* Write messages to backing field in generated C# cloning code (#4440)Sydney Acksman2018-04-1910-52/+52
| | | | | | * Edited MessageFieldGenerator to clone to backing field instead of property * Generated C# proto code
* Deliberately call simple code to avoid Unity linker pruningJon Skeet2018-04-061-0/+19
| | | | | | | | | The SampleEnumMethod method was previously only called via reflection, so the Unity linker thought it could be removed. Ditto the parameterless constructor in ReflectionHelper. This PR should avoid that issue, reducing the work needed by customers to use Google.Protobuf from Unity.
* Merge pull request #4283 from ObsidianMinor/csharp/better-test-runnersFeng Xiao2018-04-044-57/+7
|\ | | | | [C#] Update test project to be used with dotnet test and Visual Studio Test Explorer
| * Updated csharp/README.md to reflect testing changesObsidianMinor2018-04-041-4/+2
| |
| * Updated NUnit packages, removed NUnitLite added packages for dotnet and ↵ObsidianMinor2018-02-063-53/+5
| | | | | | | | Visual Studio, changed dotnet command in buildall to dotnet test, and deleted Program.cs (because it's no longer required).
* | Merge branch (#4466)Paul Yang2018-04-022-2/+2
| | | | | | | | | | | | | | | | * Fix setup.py for windows build. * Bump version number to 3.5.2 * Cat the test-suite.log on errors for presubits
* | Address review commentsJon Skeet2018-03-271-5/+13
| |
* | Work around an "old runtime" issue with reflectionJon Skeet2018-03-271-5/+51
| | | | | | | | | | | | | | | | | | | | For oneofs, to get the case, we need to call the property that returns the enum value. We really want it as an int, and modern runtimes allow us to create a delegate which returns an int from the method. (I suspect that the MS runtime has always allowed that.) Old versions of Mono (e.g. used by Unity3d) don't allow that, so we have to convert the enum value to an int via boxing. It's ugly, but it should work.
* | Introduce a compatiblity shim to support .NET 3.5 delegate creationJon Skeet2018-03-272-0/+51
| |
* | Change C# reflection to avoid using expression treesJon Skeet2018-03-272-34/+54
| | | | | | | | | | | | This should work on Unity, Mono and .NET 3.5 as far as I'm aware. It won't work on platforms where reflection itself is prohibited, but that's a non-starter basically.
* | Merge pull request #4387 from acozzette/down-integrateAdam Cozzette2018-03-201-2/+2
|\ \ | | | | | | Integrated internal changes from Google
| * | Updated checked-in generated codeAdam Cozzette2018-03-141-2/+2
| |/
* | Merge pull request #4345 from jskeet/list-json-nullFeng Xiao2018-03-202-2/+19
|\ \ | | | | | | Allow null value in JSON representation of ListValue
| * | Allow list values to be null when parsingJon Skeet2018-03-012-2/+19
| |/
* / Remove 64MB memory limit when deserializing messages in C#John Brock2018-01-312-3/+86
|/ | | | Increased `CodedInputStream.DefaultSizeLimit` to `Int32.MaxValue` to make it consistent with the Java implementation.
* Update .NET SDK to 2.0.3Jon Skeet2018-01-251-1/+1
| | | | | | | | | | This will allow SourceLink as per #4179, and mean that we can use C# 7.0 language features in the library (but not in generated code). This does not affect which platforms we're *targeting*, so end users won't see any difference. It would be nice to update to 2.1.4, but AppVeyor's "Visual Studio 2017" environment is only 2.0.3.
* Add DiscardUnknownFields support for C#Jon Skeet2018-01-155-56/+173
| | | | | | | By default, unknown fields are preserved when parsing. To discard them, use a parser configured to do so: var parser = MyMessage.Parser.WithDiscardUnknownFields(true);
* Merge remote-tracking branch 'origin/3.5.x' into masterJisi Liu2018-01-032-2/+2
|\
| * Merge pull request #4072 from google/jieluoJisi Liu2017-12-1949-716/+4417
| |\ | | | | | | Cherrypick for csharp, including:
| | * Cherrypick for csharp, including:Jie Luo2017-12-1949-716/+4417
| | | | | | | | | | | | | | | | | | Add preserve UnknownFields Compare floating point values bitwise Add auto-generated header to C# generated files
| * | Update version number to 3.5.1Jisi Liu2017-12-192-2/+2
| |/
* | Add auto-generated header to C# generated files (#4038)Jan Tattermusch2017-12-1321-42/+84
| | | | | | | | | | | | * Add auto-generated header to C# generated files * regenerate C# protos
* | Add unknown field support for csharp (#3936)Jie Luo2017-12-1329-306/+2947
| | | | | | Add unknown field support for csharp
* | Update generated code.Feng Xiao2017-12-121-1/+3
| |
* | Regenerated code from previous C# codegen commitJon Skeet2017-12-096-34/+34
| | | | | | | | | | | | With this in place, all tests should pass. Fixes #3725.
* | Compare floating point values bitwise in C#Jon Skeet2017-12-0910-14/+402
| | | | | | | | | | This is the manual code part of the Google.Protobuf library, and tests. Some tests will fail until codegen is changed and rerun.
* | Merge branch 'master' into down-integrateAdam Cozzette2017-12-0121-340/+970
|\ \
| * | Merge branch '3.5.x' into 3.5.x-mergeAdam Cozzette2017-11-301-1/+1
| |\|
| | * ParseFrom<T> for array slice is missingJan Tattermusch2017-11-101-0/+14
| | |
| | * check already performed by MergeFromJan Tattermusch2017-11-101-5/+0
| | |