Sydney Acksman
54176b26a9
C# Proto2 feature : Field presence and default values ( #4642 )
...
* Compiler changes
* Generated code changes
* Library changes
* Compiler style changes
* Generated style changes
* Fix Windows build errors
* Implement changes from review
* Reintroduce proto2 check
* Compiler changes (required handling review)
* Generated code changes (required handling review)
* Library changes (required handling review
* Field presence rewrite (compiler changes)
* Field presence rewrite (generated code changes)
* Compiler comment
* IFieldAccessor.HasValue library implementation
* Remove Clear methods and default values from proto3 code (Compiler)
* Remove Clear methods and default values from proto3 code (Generated)
* Remove Clear methods and default values from proto3 code (Library)
* Fix distcheck error
* Rewrite default string values to use base64 and convert
* Library changes (IMessage2)
* Compiler changes (IMessage2)
* Generated changes (IMessage2)
* Rebased and regenerated
* Compiler changes (initialized extension)
* Generated changes (initialized extension)
* Library changes (initialized extension)
* Refactor MessageExtensions.IsRequired
* Move string default value creator and bytes default value creator back to seperate methods
* Dead code cleanup
* Fixed segmentation fault
Removed unused header method declarations
6 years ago
Sydney Acksman
4ca46ede5c
Write messages to backing field in generated C# cloning code ( #4440 )
...
* Edited MessageFieldGenerator to clone to backing field instead of property
* Generated C# proto code
7 years ago
Jie Luo
b308580bb1
Cherrypick for csharp, including:
...
Add preserve UnknownFields
Compare floating point values bitwise
Add auto-generated header to C# generated files
7 years ago
Jan Tattermusch
426cf6f31e
Add auto-generated header to C# generated files ( #4038 )
...
* Add auto-generated header to C# generated files
* regenerate C# protos
7 years ago
Jie Luo
bfd254e14f
Add unknown field support for csharp ( #3936 )
...
Add unknown field support for csharp
7 years ago
Feng Xiao
49b31dc5f7
Update C# generated file for addressbook.proto
7 years ago
Jon Skeet
f26e8c2ae0
Convert C# projects to MSBuild (csproj) format
...
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.
8 years ago
Jan Tattermusch
fda9049ead
remove leading whitespace in C# xml comments
8 years ago
Jon Skeet
b5ce5251fd
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
9 years ago
Jon Skeet
10a8fb4e73
Move to dotnet cli for building, and .NET Core (netstandard1.0) as target platform ( #1727 )
...
Move to dotnet cli for building, and .NET Core (netstandard1.0) as target platform
This also updates the version number to 3.0.0-beta4
9 years ago
Jon Skeet
c53484539c
Changes to generated code from previous commit
9 years ago
Jon Skeet
84ea2c7a81
Regenerate all C# code and make it compile
...
JSON tests fail, as we're not using OriginalNameAttribute yet.
9 years ago
Jon Skeet
045b528d4a
Generated code changes from previous commit
9 years ago
Jon Skeet
b6159965ec
Generated code for GeneratedCodeInfo change
9 years ago
Jon Skeet
adee6fe332
Generated code changes from previous commit.
9 years ago
Jon Skeet
a2667aafd8
Generated code changes for previous commit (basically InternalBuildGeneratedFileFrom => FromGeneratedCode)
9 years ago
Gabriel Kliot
bdec990703
Removed redundant comment.
9 years ago
Jon Skeet
eadd4caa09
Generated code from previous commit.
9 years ago
Gabriel Kliot
09d03dfc7e
Fixed a bug in CSharp SampleUsage.
9 years ago
Jon Skeet
284bb452e4
Generated code changes and manual changes for previous commit.
9 years ago
Jon Skeet
18e0a2e5ec
Generated code from previous commit.
9 years ago
Jon Skeet
e2c823027e
Generated code changes for previous commit.
9 years ago
Jon Skeet
b0888a42ad
Generated code for previous commit
9 years ago
Jon Skeet
9489817df2
Regenerated code. Most changes are whitespace, removing trailing spaces.
...
Other changes are due to the well-known types changing without us regenerating.
9 years ago
Jon Skeet
5bdc57292f
Generated code for previous commit.
9 years ago
Jon Skeet
1a57ad8b41
Generated code changes for previous commit.
9 years ago
Jon Skeet
fe355b26ec
Generated code changes for previous commit.
9 years ago
Jan Tattermusch
d331d2f60f
make changes and fixes in signing
9 years ago
Jan Tattermusch
538ef54f1e
build signed assemblies
9 years ago
Jon Skeet
d18cc08456
Generated code for previous commit.
9 years ago
Jon Skeet
dea15a7ca4
Generated code from previous commit.
9 years ago
Jan Tattermusch
7ec023acf4
regenerate code
9 years ago
Jon Skeet
0dbd5ec80d
First attempt at using profile 259 for Google.Protobuf.
...
This requires .NET 4.5, and there are a few compatibility changes required around reflection.
Creating a PR from this to see how our CI systems handle it. Will want to add more documentation,
validation and probably tests before merging.
This is in aid of issue #590 .
9 years ago
Jon Skeet
47bf49b9fa
Generated code for previous commit.
9 years ago
Jon Skeet
96cffaa8e3
Generated code changes following previous commit.
10 years ago
Jan Tattermusch
43b17376f7
update addressbook example
10 years ago
Jan Tattermusch
352690efc7
regenerate Addressbook.cs
10 years ago
Jon Skeet
59eeebee87
First pass at the big rename from ProtocolBuffers to Google.Protobuf.
...
We'll see what I've missed when CI fails...
10 years ago
Jon Skeet
62a4aa56d4
Generated code for well-known types
10 years ago
Jon Skeet
76940942cf
Changing reflection namespace (part 2)
...
Generated code changes from previous commit
10 years ago
Jon Skeet
68fc689e52
Generated code changes for previous submit
10 years ago
Jon Skeet
5b9288e47d
Use the new JsonFormatter to implement ToString on generated messages.
10 years ago
Jon Skeet
5350822b0a
Regenerated code due to previous commit.
...
Note that now we need a proto3 version of addressbook.proto. This may affect other platforms, and could do with an overhaul to follow proto3 conventions anyway (e.g. repeated field names). Will need to think about that carefully before merging into master. Raised issue #565 for this.
10 years ago
Jon Skeet
462d569ec0
Changes to generated code due to previous commit.
10 years ago
Jon Skeet
ee835a3fe4
Fix copyright lines for all C# code.
...
Everything should now be consistent - the only difference between files is the year (aside from generated files).
Fixes issue #531 .
10 years ago
Jon Skeet
f2a27cc2c7
First pass (not yet compiling) at removing all the array handling code from Coded*Stream.
...
Prod code works, but some tests are broken. Obviously those need fixing, then more tests,
and review benchmarks.
10 years ago
Jon Skeet
fb77cc9d9f
More cleanup, based around searches for "Google.ProtocolBuffers"
...
- Remove some old proto2-based C#-only messages
- Remove the "build" directory which only contained out-of-date files
- Remove the csharp_namespace option from proto2 messages
- Change "Google.ProtocolBuffers" to "Google.Protobuf" in other messages
10 years ago
Jon Skeet
e6fc9778f5
Generated code changes for previous commit.
10 years ago
Jon Skeet
3e7d70cb69
Generated code changes due to map changes.
...
(Primarily this is starting the hash code of messages at a non-zero value...)
10 years ago
Jon Skeet
bfee2dfe13
Implement freezing for messages and repeated fields.
...
Fixes issue #523 .
10 years ago