Jon Skeet
d77d70d227
Merge pull request #691 from jskeet/xml-documentation
...
Document everything, and turn on errors if we fail to document anything in the future
2015-08-05 07:09:17 +01:00
Jon Skeet
30e8157550
Fix one cref that Mono was unhappy with
2015-08-05 06:39:43 +01:00
Jan Tattermusch
95910f1c7d
Merge pull request #684 from jskeet/unused
...
Fix build warnings around unused variables
2015-08-04 16:04:25 -07:00
Jon Skeet
811fc89f0e
Document everything, and turn on errors if we fail to document anything in the future.
2015-08-04 15:58:39 +01:00
Jon Skeet
99a81d297c
Fix build warnings around unused variables
2015-08-04 07:10:36 +01:00
Feng Xiao
dc80689af3
Merge pull request #653 from airtimemedia/master
...
Various compilation fixes
2015-08-03 10:19:32 -07:00
Jon Skeet
b59bfcb309
Merge pull request #681 from jskeet/json-fieldmask
...
JSON formatting for FieldMask
2015-08-03 17:32:28 +01:00
Jon Skeet
8136ad5c3c
Merge pull request #677 from jskeet/move-protos
...
Remove a redundant layer of directory hierarchy.
2015-08-03 15:19:50 +01:00
Jon Skeet
415f72e079
Merge pull request #680 from jskeet/aptca
...
Allow partially-trusted callers again.
2015-08-03 14:05:52 +01:00
Jon Skeet
0e30de3d6b
JSON formatting for FieldMask
2015-08-03 14:03:11 +01:00
Jon Skeet
db9f47a3ed
Merge pull request #678 from jskeet/stream-ctor
...
Expose Coded*Stream constructors directly.
2015-08-03 14:02:44 +01:00
Jon Skeet
0e0e0c97e7
Expose Coded*Stream constructors directly.
2015-08-03 11:30:15 +01:00
Jon Skeet
0f370b468b
Remove a redundant layer of directory hierarchy.
2015-08-03 11:29:59 +01:00
Jon Skeet
e94bdd9303
Allow partially-trusted callers again.
...
Fixes issue #552 . (And yay, it looks like our build profile supports this...)
2015-08-03 11:24:17 +01:00
Jon Skeet
bf1cc9217a
Merge pull request #675 from jtattermusch/signing
...
Add ReleaseSigned configuration for C#
2015-08-03 11:16:31 +01:00
Jon Skeet
da776fbd1e
Merge pull request #672 from jskeet/json-struct
...
Formatting of Struct as JSON
2015-08-03 10:56:24 +01:00
Jon Skeet
e7caf15577
Initial pass at formatting Struct as JSON.
...
This seems remarkably little code, but it appears to work. I can add tests for invalid structs at some point, once the general approach is approved.
2015-08-03 09:32:36 +01:00
Jon Skeet
115e6c735e
Merge pull request #671 from jskeet/json-time
...
JSON formatting for Timestamp and Duration
2015-08-03 09:31:19 +01:00
Jon Skeet
801b169bce
Addressed issues raised in code review. Will merge when green.
2015-08-03 09:26:05 +01:00
Jon Skeet
16e272e0c4
Format JSON for Duration and Timestamp.
...
This is taking an approach of putting all the logic in JsonFormatter. That's helpful in terms of concealing the details of whether or not to wrap the value in quotes, but it does lack flexibility. I don't *think* we want to allow user-defined formatting of messages, so that much shouldn't be a problem.
2015-08-03 09:26:04 +01:00
Jan Tattermusch
e61b528b5a
Update Makefile.am
2015-08-02 14:27:01 -07:00
Jan Tattermusch
d331d2f60f
make changes and fixes in signing
2015-08-02 01:24:27 -07:00
Jan Tattermusch
0df900f0dc
added protoc.exe and well known protobuf files to the nuspec file
2015-08-02 01:20:42 -07:00
Jan Tattermusch
538ef54f1e
build signed assemblies
2015-08-02 01:20:40 -07:00
Jan Tattermusch
80f89b4ecf
Merge pull request #669 from jskeet/simpify-json-tests
...
Simpify json tests
2015-08-01 13:34:14 -07:00
Jan Tattermusch
82aa6bbdfc
Merge pull request #668 from jskeet/json_ordering
...
Fix C# JSON field ordering
2015-08-01 13:30:07 -07:00
Paul Yang
bfbf35da9e
Merge pull request #643 from yukawa/fix_win_unicode_build
...
Fix build failure on Windows when Unicode build is enabled.
2015-07-31 11:36:51 -07:00
Jan Tattermusch
abd7083b0c
Merge pull request #667 from jskeet/fix-field-orderings
...
Fix trivial bug in field orderings.
2015-07-31 11:29:07 -07:00
Jon Skeet
6cf5f660e5
Simplify the JSON tests for readability
...
Use ' instead of " in the expected JSON, then replace it before asserting.
2015-07-31 10:46:24 +01:00
Jon Skeet
4fed0b515f
Fix JSON formatting to always emit fields in field order, including oneofs
2015-07-31 10:34:20 +01:00
Jon Skeet
fd02e45b2a
Fix trivial bug in field orderings.
...
(Shows the benefit of unit testing even code "too simple to fail"...)
2015-07-31 10:34:04 +01:00
Jon Skeet
c20f67fdb4
Merge pull request #666 from jskeet/wkt-times
...
Well-known type operations for Timestamp and Duration
2015-07-31 10:12:52 +01:00
Jon Skeet
9629797331
Well-known type operations for Timestamp and Duration (but not JSON formatting).
...
While I've provided operators, I haven't yet provided the method equivalents. It's not clear to me that
they're actually a good idea, while we're really targeting C# developers who definitely *can* use the user-defined operators.
2015-07-31 08:14:11 +01:00
Jon Skeet
5bdb1fb311
Merge pull request #665 from jskeet/types_field
...
Handle field names of "descriptor" and "types".
2015-07-31 08:13:47 +01:00
Jon Skeet
f994cfe808
Handle field names of "descriptor" and "types".
2015-07-31 07:00:25 +01:00
Yohei Yukawa
8c27eea686
Fix build failure on Windows when Unicode build is enabled.
...
This is a follow up CL for e9abc404df
,
which breaks build when UNICODE macro is defined.
protoc has explicitly called MBCS version of APIs / funcsions
rather than UTF-16 (wchar_t) version of them regardless of
UNICODE macro definition (and it indeed works as expected).
Hence it makes sense to call GetModuleFileNameA explicitly.
2015-07-30 18:10:17 -07:00
Jan Tattermusch
b193503aa7
Merge pull request #664 from jtattermusch/expose_umbrella_class_name2
...
Expose GetUmbrellaClassName in csharp_names.h
2015-07-30 16:40:23 -07:00
Jan Tattermusch
43a2dee708
refactor umbrella class helpers
2015-07-30 14:54:09 -07:00
Jan Tattermusch
12febd0a76
Merge pull request #632 from google/csharp-experimental
...
Merge C# proto3 from csharp-experimental to master
2015-07-30 14:51:11 -07:00
Jan Tattermusch
bde01d5326
Merge pull request #660 from jskeet/throw-on-null
...
Throw on null for string/bytes single fields
2015-07-30 11:49:27 -07:00
Tom Hughes
c6095505dc
Move pthread include.
...
Based on pull request feedback. See commit 60c5222
for why the pthread
header is necessary.
2015-07-30 09:30:31 -07:00
Jon Skeet
d18cc08456
Generated code for previous commit.
2015-07-30 13:50:02 +01:00
Jon Skeet
3980cf9df1
Prohibit null values for string/bytes fields in generated code.
2015-07-30 13:36:46 +01:00
Jon Skeet
68380f0f66
Rename ThrowHelper to Preconditions and make it public - we'll want to use it from the generated code soon.
...
Additionally, change it to return the value passed, and make it generic with a class constraint.
A separate method doesn't have the class constraint, for more unusual scenarios.
2015-07-30 13:36:45 +01:00
Jon Skeet
7909b2edeb
Merge pull request #659 from jskeet/fix-frozen
...
Remove a few hangers-on from frozenness.
2015-07-30 13:35:55 +01:00
Jon Skeet
dea15a7ca4
Generated code from previous commit.
2015-07-30 13:16:00 +01:00
Jon Skeet
f03271665f
More freezing tidy-up; generated code in next commit.
2015-07-30 13:15:45 +01:00
Jon Skeet
3b2fe97b6f
Minor bits of left-over frozenness.
2015-07-30 13:07:50 +01:00
Jon Skeet
7a0effb9e9
Merge pull request #654 from jtattermusch/csharp_hide_freeze
...
Remove the C# Freeze API
2015-07-30 09:47:38 +01:00
Jon Skeet
9cfea1d6f6
Merge pull request #655 from jtattermusch/csharp_expose_more_info_about_service
...
Expose IsClientStreaming and IsServerStreaming in MethodDescriptor
2015-07-30 06:46:53 +01:00