commit
c4d1d9dfc9
89 changed files with 16403 additions and 4162 deletions
@ -0,0 +1,92 @@ |
||||
=============================================================================== |
||||
Welcome to the C# port of Google Protocol Buffers, written by Jon Skeet |
||||
(skeet@pobox.com) based on the work of many talented people. |
||||
|
||||
For more information about this port, visit its homepage: |
||||
http://protobuf-csharp-port.googlecode.com |
||||
|
||||
For more information about Protocol Buffers in general, visit the project page |
||||
for the C++, Java and Python project: |
||||
http://protobuf.googlecode.com |
||||
=============================================================================== |
||||
RELEASE NOTES - Version TBD |
||||
=============================================================================== |
||||
|
||||
(PENDING MERGE) |
||||
- Issue 20: Support for decorating classes [Serializable] |
||||
- Issue 22: Reusable Builder classes |
||||
- Issue 24: Support for using Json/Xml formats with ICodedInputStream |
||||
|
||||
Features: |
||||
- Added option service_generator_type to control service generation with |
||||
NONE, GENERIC, INTERFACE, or IRPCDISPATCH |
||||
- Added interfaces IRpcDispatch and IRpcServerStub to provide for blocking |
||||
services and implementations. |
||||
- Added ProtoGen.exe command-line argument "--protoc_dir=" to specify the |
||||
location of protoc.exe. |
||||
- Extracted interfaces for ICodedInputStream and ICodedOutputStream to allow |
||||
custom implementation of writers with both speed and size optimizations. |
||||
- Addition of the "Google.ProtoBuffers.Serialization" assembly to support |
||||
reading and writing messages to/from XML, JSON, IDictionary<,> and others. |
||||
- Several performance related fixes and tweeks |
||||
- Issue 3: Add option to mark generated code with attribute |
||||
- Issue 21: Decorate fields with [deprecated=true] as [System.Obsolete] |
||||
|
||||
Fixes: |
||||
- Issue 13: Message with Field same name as message causes uncompilable .cs |
||||
- Issue 16: Does not integrate well with other tooling |
||||
- Issue 19: Support for negative enum values |
||||
- Issue 26: AddRange in GeneratedBuilder iterates twice. |
||||
- Issue 27: Remove XML documentation output from test projects to clear |
||||
warnings/errors. |
||||
- Big-endian support for float, and double on Silverlight |
||||
- Packed and Unpacked parsing allow for all repeated, as per version 2.3 |
||||
- Fix for leaving Builder a public ctor on internal classes for use with |
||||
generic "where T: new()" constraints. |
||||
|
||||
Other: |
||||
- Reformatted all code and line-endings to C# defaults |
||||
- Reworking of performance benchmarks to produce reliable results, option /v2 |
||||
|
||||
=============================================================================== |
||||
RELEASE NOTES - Version 2.3.0.277 |
||||
=============================================================================== |
||||
|
||||
Features: |
||||
- Added cls_compliance option to generate attributes indicating |
||||
non-CLS-compliance. |
||||
- Added file_extension option to control the generated output file's extension. |
||||
- Added umbrella_namespace option to place the umbrella class into a nested |
||||
namespace to address issues with proto files having the same name as a |
||||
message it contains. |
||||
- Added output_directory option to set the output path for the source file(s). |
||||
- Added ignore_google_protobuf option to avoid generating code for includes |
||||
from the google.protobuf package. |
||||
- Added the LITE framework (Google.ProtoBuffersLite.dll) and the ability to |
||||
generate code with "option optimize_for = LITE_RUNTIME;". |
||||
- Added ability to invoke protoc.exe from within ProtoGen.exe. |
||||
- Upgraded to protoc.exe (2.3) compiler. |
||||
|
||||
Fixes: |
||||
- Issue 9: Class cannot be static and sealed error |
||||
- Issue 12: default value for enumerate fields must be filled out |
||||
|
||||
Other: |
||||
- Rewrite of build using MSBbuild instead of NAnt |
||||
- Moved to NUnit Version 2.2.8.0 |
||||
- Changed to using secure .snk for releases |
||||
|
||||
=============================================================================== |
||||
RELEASE NOTES - Version 0.9.1 |
||||
=============================================================================== |
||||
|
||||
Fixes: |
||||
- issue 10: Incorrect encoding of packed fields when serialized |
||||
|
||||
=============================================================================== |
||||
RELEASE NOTES - Version 0.9.0 |
||||
=============================================================================== |
||||
|
||||
- Initial release |
||||
|
||||
=============================================================================== |
@ -1,10 +1,10 @@ |
||||
@echo off |
||||
SET BUILD_TARGET=%1 |
||||
SET BUILD_CONFIG=%2 |
||||
|
||||
IF "%BUILD_TARGET%"=="" SET BUILD_TARGET=Rebuild |
||||
IF "%BUILD_CONFIG%"=="" SET BUILD_CONFIG=Debug |
||||
|
||||
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe build.csproj %3 %4 %5 %6 /t:%BUILD_TARGET% /p:BuildConfiguration=%BUILD_CONFIG% /p:Platform="Any CPU" /p:BuildTools=4.0 /toolsversion:4.0" |
||||
|
||||
@echo off |
||||
SET BUILD_TARGET=%1 |
||||
SET BUILD_CONFIG=%2 |
||||
|
||||
IF "%BUILD_TARGET%"=="" SET BUILD_TARGET=Rebuild |
||||
IF "%BUILD_CONFIG%"=="" SET BUILD_CONFIG=Debug |
||||
|
||||
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe build.csproj %3 %4 %5 %6 /t:%BUILD_TARGET% /p:BuildConfiguration=%BUILD_CONFIG% /p:Platform="Any CPU" /p:BuildTools=4.0 /toolsversion:4.0" |
||||
|
||||
pause |
@ -1,42 +1,42 @@ |
||||
@ECHO OFF |
||||
|
||||
SET PREV_WORKING_DIR=%CD% |
||||
CD %~dp0 |
||||
|
||||
REM -- 3.5 Debug build, ensure this continues to work |
||||
%WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe build.csproj /t:Rebuild /p:BuildConfiguration=Debug /p:Platform="Any CPU" /p:BuildTools=3.5 /toolsversion:3.5" |
||||
IF ERRORLEVEL 1 GOTO ERROR |
||||
|
||||
REM -- 4.0 Debug build |
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Debug /p:Platform="Any CPU" |
||||
IF ERRORLEVEL 1 GOTO ERROR |
||||
|
||||
REM -- 4.0 Release build |
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Release /p:Platform="Any CPU" |
||||
IF ERRORLEVEL 1 GOTO ERROR |
||||
|
||||
IF EXIST "%ProgramFiles%\MSBuild\Microsoft\Silverlight\v2.0\Microsoft.Silverlight.CSharp.targets" GOTO SILVERLIGHT |
||||
IF EXIST "%ProgramFiles(x86)%\MSBuild\Microsoft\Silverlight\v2.0\Microsoft.Silverlight.CSharp.targets" GOTO SILVERLIGHT |
||||
|
||||
ECHO Unable to locate %ProgramFiles(x86)%\MSBuild\Microsoft\Silverlight\v2.0 |
||||
GOTO ERROR |
||||
|
||||
:SILVERLIGHT |
||||
|
||||
REM -- 4.0 Debug_Silverlight2 build |
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Debug_Silverlight2 /p:Platform="Any CPU" |
||||
IF ERRORLEVEL 1 GOTO ERROR |
||||
|
||||
REM -- 4.0 Release_Silverlight2 build |
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Release_Silverlight2 /p:Platform="Any CPU" |
||||
IF ERRORLEVEL 1 GOTO ERROR |
||||
|
||||
GOTO END |
||||
|
||||
:ERROR |
||||
CD %PREV_WORKING_DIR% |
||||
PAUSE |
||||
|
||||
:END |
||||
CD %PREV_WORKING_DIR% |
||||
@ECHO OFF |
||||
|
||||
SET PREV_WORKING_DIR=%CD% |
||||
CD %~dp0 |
||||
|
||||
REM -- 3.5 Debug build, ensure this continues to work |
||||
%WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe build.csproj /t:Rebuild /p:BuildConfiguration=Debug /p:Platform="Any CPU" /p:BuildTools=3.5 /toolsversion:3.5" |
||||
IF ERRORLEVEL 1 GOTO ERROR |
||||
|
||||
REM -- 4.0 Debug build |
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Debug /p:Platform="Any CPU" |
||||
IF ERRORLEVEL 1 GOTO ERROR |
||||
|
||||
REM -- 4.0 Release build |
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Release /p:Platform="Any CPU" |
||||
IF ERRORLEVEL 1 GOTO ERROR |
||||
|
||||
IF EXIST "%ProgramFiles%\MSBuild\Microsoft\Silverlight\v2.0\Microsoft.Silverlight.CSharp.targets" GOTO SILVERLIGHT |
||||
IF EXIST "%ProgramFiles(x86)%\MSBuild\Microsoft\Silverlight\v2.0\Microsoft.Silverlight.CSharp.targets" GOTO SILVERLIGHT |
||||
|
||||
ECHO Unable to locate %ProgramFiles(x86)%\MSBuild\Microsoft\Silverlight\v2.0 |
||||
GOTO ERROR |
||||
|
||||
:SILVERLIGHT |
||||
|
||||
REM -- 4.0 Debug_Silverlight2 build |
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Debug_Silverlight2 /p:Platform="Any CPU" |
||||
IF ERRORLEVEL 1 GOTO ERROR |
||||
|
||||
REM -- 4.0 Release_Silverlight2 build |
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Release_Silverlight2 /p:Platform="Any CPU" |
||||
IF ERRORLEVEL 1 GOTO ERROR |
||||
|
||||
GOTO END |
||||
|
||||
:ERROR |
||||
CD %PREV_WORKING_DIR% |
||||
PAUSE |
||||
|
||||
:END |
||||
CD %PREV_WORKING_DIR% |
||||
SET PREV_WORKING_DIR= |
@ -1,5 +1,5 @@ |
||||
@echo off |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build /p:BuildConfiguration=Debug_Silverlight2 /p:Platform="Any CPU" |
||||
|
||||
@echo off |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build /p:BuildConfiguration=Debug_Silverlight2 /p:Platform="Any CPU" |
||||
|
||||
pause |
@ -1,19 +1,19 @@ |
||||
@ECHO OFF |
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:PrepareOutputDirectory |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild;PreparePackageComponent /p:BuildConfiguration=Debug /p:Platform="Any CPU" %PROTOBUF_KEY_FILE% |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild;PreparePackageComponent /p:BuildConfiguration=Debug_Silverlight2 /p:Platform="Any CPU" %PROTOBUF_KEY_FILE% |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild;PreparePackageComponent /p:BuildConfiguration=Release /p:Platform="Any CPU" %PROTOBUF_KEY_FILE% |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild;PreparePackageComponent /p:BuildConfiguration=Release_Silverlight2 /p:Platform="Any CPU" %PROTOBUF_KEY_FILE% |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:GeneratePackage /p:PackageName=AllBinariesAndSource.zip /p:Platform="Any CPU" |
||||
|
||||
@ECHO OFF |
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:PrepareOutputDirectory |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild;PreparePackageComponent /p:BuildConfiguration=Debug /p:Platform="Any CPU" %PROTOBUF_KEY_FILE% |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild;PreparePackageComponent /p:BuildConfiguration=Debug_Silverlight2 /p:Platform="Any CPU" %PROTOBUF_KEY_FILE% |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild;PreparePackageComponent /p:BuildConfiguration=Release /p:Platform="Any CPU" %PROTOBUF_KEY_FILE% |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild;PreparePackageComponent /p:BuildConfiguration=Release_Silverlight2 /p:Platform="Any CPU" %PROTOBUF_KEY_FILE% |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:GeneratePackage /p:PackageName=AllBinariesAndSource.zip /p:Platform="Any CPU" |
||||
|
||||
:END |
@ -1,13 +1,13 @@ |
||||
@ECHO OFF |
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:PrepareOutputDirectory |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild;PreparePackageComponent /p:BuildConfiguration=Release /p:Platform="Any CPU" %PROTOBUF_KEY_FILE% |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild;PreparePackageComponent /p:BuildConfiguration=Release_Silverlight2 /p:Platform="Any CPU" %PROTOBUF_KEY_FILE% |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:GeneratePackage /p:PackageName=ReleaseBinaries.zip /p:Platform="Any CPU" |
||||
|
||||
@ECHO OFF |
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:PrepareOutputDirectory |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild;PreparePackageComponent /p:BuildConfiguration=Release /p:Platform="Any CPU" %PROTOBUF_KEY_FILE% |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild;PreparePackageComponent /p:BuildConfiguration=Release_Silverlight2 /p:Platform="Any CPU" %PROTOBUF_KEY_FILE% |
||||
IF ERRORLEVEL 1 GOTO END |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:GeneratePackage /p:PackageName=ReleaseBinaries.zip /p:Platform="Any CPU" |
||||
|
||||
:END |
@ -1,5 +1,5 @@ |
||||
@echo off |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild %~dp0\build.csproj /m /t:RunBenchmarks /p:BuildConfiguration=Release /p:Platform="Any CPU" |
||||
|
||||
@echo off |
||||
|
||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild %~dp0\build.csproj /m /t:RunBenchmarks /p:BuildConfiguration=Release /p:Platform="Any CPU" |
||||
|
||||
pause |
@ -1,8 +1,8 @@ |
||||
@echo off |
||||
SET BUILD_TARGET=%1 |
||||
SET BUILD_CONFIG=%2 |
||||
|
||||
IF "%BUILD_TARGET%"=="" SET BUILD_TARGET=Rebuild |
||||
IF "%BUILD_CONFIG%"=="" SET BUILD_CONFIG=Debug |
||||
|
||||
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe build.csproj %3 %4 %5 %6 /t:%BUILD_TARGET% /p:BuildConfiguration=%BUILD_CONFIG% /p:Platform="Any CPU" /p:BuildTools=3.5 /toolsversion:3.5" |
||||
@echo off |
||||
SET BUILD_TARGET=%1 |
||||
SET BUILD_CONFIG=%2 |
||||
|
||||
IF "%BUILD_TARGET%"=="" SET BUILD_TARGET=Rebuild |
||||
IF "%BUILD_CONFIG%"=="" SET BUILD_CONFIG=Debug |
||||
|
||||
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe build.csproj %3 %4 %5 %6 /t:%BUILD_TARGET% /p:BuildConfiguration=%BUILD_CONFIG% /p:Platform="Any CPU" /p:BuildTools=3.5 /toolsversion:3.5" |
||||
|
@ -1,31 +1,31 @@ |
||||
Protocol Buffers - Google's data interchange format |
||||
Copyright 2008-2010 Google Inc. All rights reserved. |
||||
http://github.com/jskeet/dotnet-protobufs/ |
||||
Original C++/Java/Python code: |
||||
http://code.google.com/p/protobuf/ |
||||
|
||||
Redistribution and use in source and binary forms, with or without |
||||
modification, are permitted provided that the following conditions are |
||||
met: |
||||
|
||||
* Redistributions of source code must retain the above copyright |
||||
notice, this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above |
||||
copyright notice, this list of conditions and the following disclaimer |
||||
in the documentation and/or other materials provided with the |
||||
distribution. |
||||
* Neither the name of Google Inc. nor the names of its |
||||
contributors may be used to endorse or promote products derived from |
||||
this software without specific prior written permission. |
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
Protocol Buffers - Google's data interchange format |
||||
Copyright 2008-2010 Google Inc. All rights reserved. |
||||
http://github.com/jskeet/dotnet-protobufs/ |
||||
Original C++/Java/Python code: |
||||
http://code.google.com/p/protobuf/ |
||||
|
||||
Redistribution and use in source and binary forms, with or without |
||||
modification, are permitted provided that the following conditions are |
||||
met: |
||||
|
||||
* Redistributions of source code must retain the above copyright |
||||
notice, this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above |
||||
copyright notice, this list of conditions and the following disclaimer |
||||
in the documentation and/or other materials provided with the |
||||
distribution. |
||||
* Neither the name of Google Inc. nor the names of its |
||||
contributors may be used to endorse or promote products derived from |
||||
this software without specific prior written permission. |
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
@ -1,61 +1,62 @@ |
||||
// Additional options required for C# generation. File from copyright |
||||
// line onwards is as per original distribution. |
||||
import "google/protobuf/csharp_options.proto"; |
||||
option (google.protobuf.csharp_file_options).namespace = "Google.ProtocolBuffers.TestProtos"; |
||||
option (google.protobuf.csharp_file_options).umbrella_classname = "UnitTestExtrasLiteProtoFile"; |
||||
|
||||
package protobuf_unittest_extra; |
||||
|
||||
option optimize_for = LITE_RUNTIME; |
||||
|
||||
option java_package = "com.google.protobuf"; |
||||
|
||||
message TestRequiredLite { |
||||
required int32 d = 1; |
||||
required ExtraEnum en = 2 [default = DEFAULT]; |
||||
} |
||||
|
||||
enum ExtraEnum { |
||||
DEFAULT = 10; |
||||
EXLITE_FOO = 7; |
||||
EXLITE_BAR = 8; |
||||
EXLITE_BAZ = 9; |
||||
} |
||||
|
||||
message TestInteropPersonLite { |
||||
required string name = 1; |
||||
required int32 id = 2; |
||||
optional string email = 3; |
||||
repeated int32 codes = 10 [packed=true]; |
||||
|
||||
enum PhoneType { |
||||
MOBILE = 0; |
||||
HOME = 1; |
||||
WORK = 2; |
||||
} |
||||
|
||||
message PhoneNumber { |
||||
required string number = 1; |
||||
optional PhoneType type = 2 [default = HOME]; |
||||
} |
||||
|
||||
repeated PhoneNumber phone = 4; |
||||
|
||||
repeated group Addresses = 5 { |
||||
required string address = 1; |
||||
optional string address2 = 2; |
||||
required string city = 3; |
||||
required string state = 4; |
||||
required fixed32 zip = 5; |
||||
} |
||||
|
||||
extensions 100 to 199; |
||||
} |
||||
|
||||
message TestInteropEmployeeIdLite { |
||||
required string number = 1; |
||||
} |
||||
|
||||
extend TestInteropPersonLite { |
||||
required TestInteropEmployeeIdLite employee_id_lite = 126; |
||||
} |
||||
// Additional options required for C# generation. File from copyright |
||||
// line onwards is as per original distribution. |
||||
import "google/protobuf/csharp_options.proto"; |
||||
option (google.protobuf.csharp_file_options).namespace = "Google.ProtocolBuffers.TestProtos"; |
||||
option (google.protobuf.csharp_file_options).umbrella_classname = "UnitTestExtrasLiteProtoFile"; |
||||
option (google.protobuf.csharp_file_options).add_serializable = true; |
||||
|
||||
package protobuf_unittest_extra; |
||||
|
||||
option optimize_for = LITE_RUNTIME; |
||||
|
||||
option java_package = "com.google.protobuf"; |
||||
|
||||
message TestRequiredLite { |
||||
required int32 d = 1; |
||||
required ExtraEnum en = 2 [default = DEFAULT]; |
||||
} |
||||
|
||||
enum ExtraEnum { |
||||
DEFAULT = 10; |
||||
EXLITE_FOO = 7; |
||||
EXLITE_BAR = 8; |
||||
EXLITE_BAZ = 9; |
||||
} |
||||
|
||||
message TestInteropPersonLite { |
||||
required string name = 1; |
||||
required int32 id = 2; |
||||
optional string email = 3; |
||||
repeated int32 codes = 10 [packed=true]; |
||||
|
||||
enum PhoneType { |
||||
MOBILE = 0; |
||||
HOME = 1; |
||||
WORK = 2; |
||||
} |
||||
|
||||
message PhoneNumber { |
||||
required string number = 1; |
||||
optional PhoneType type = 2 [default = HOME]; |
||||
} |
||||
|
||||
repeated PhoneNumber phone = 4; |
||||
|
||||
repeated group Addresses = 5 { |
||||
required string address = 1; |
||||
optional string address2 = 2; |
||||
required string city = 3; |
||||
required string state = 4; |
||||
required fixed32 zip = 5; |
||||
} |
||||
|
||||
extensions 100 to 199; |
||||
} |
||||
|
||||
message TestInteropEmployeeIdLite { |
||||
required string number = 1; |
||||
} |
||||
|
||||
extend TestInteropPersonLite { |
||||
required TestInteropEmployeeIdLite employee_id_lite = 126; |
||||
} |
||||
|
@ -0,0 +1,44 @@ |
||||
<NotepadPlus> |
||||
<!-- |
||||
Defines syntax highlighting for Notepad++. |
||||
1. Install Notepad++ from http://notepad-plus-plus.org |
||||
2. Open Notepad++, from the View menu, select "User-Defined Dialog..." |
||||
3. Click the "Import..." button and select this file |
||||
4. Restart Notepad++ |
||||
5. Open and edit any *.proto file |
||||
--> |
||||
<UserLang name="Proto Buffer" ext="proto"> |
||||
<Settings> |
||||
<Global caseIgnored="no" /> |
||||
<TreatAsSymbol comment="no" commentLine="yes" /> |
||||
<Prefix words1="no" words2="no" words3="no" words4="yes" /> |
||||
</Settings> |
||||
<KeywordLists> |
||||
<Keywords name="Delimiters">[00]00</Keywords> |
||||
<Keywords name="Folder+">{</Keywords> |
||||
<Keywords name="Folder-">}</Keywords> |
||||
<Keywords name="Operators">=</Keywords> |
||||
<Keywords name="Comment"> 1option 1package 1import 2; 0//</Keywords> |
||||
<Keywords name="Words1">message enum service extend</Keywords> |
||||
<Keywords name="Words2">required optional repeated extensions to rpc returns</Keywords> |
||||
<Keywords name="Words3">double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes</Keywords> |
||||
<Keywords name="Words4"></Keywords> |
||||
</KeywordLists> |
||||
<Styles> |
||||
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontStyle="0" /> |
||||
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF" fontStyle="1" /> |
||||
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontStyle="1" /> |
||||
<WordsStyle name="KEYWORD1" styleID="5" fgColor="0000FF" bgColor="FFFFFF" fontStyle="0" /> |
||||
<WordsStyle name="KEYWORD2" styleID="6" fgColor="0080C0" bgColor="FFFFFF" fontStyle="0" /> |
||||
<WordsStyle name="KEYWORD3" styleID="7" fgColor="0000FF" bgColor="FFFFFF" fontStyle="0" /> |
||||
<WordsStyle name="KEYWORD4" styleID="8" fgColor="008040" bgColor="FFFFFF" fontStyle="0" /> |
||||
<WordsStyle name="COMMENT" styleID="1" fgColor="008000" bgColor="FFFFFF" fontStyle="0" /> |
||||
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="949494" bgColor="FFFFFF" fontStyle="0" /> |
||||
<WordsStyle name="NUMBER" styleID="4" fgColor="FF0000" bgColor="FFFFFF" fontStyle="0" /> |
||||
<WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF" fontStyle="0" /> |
||||
<WordsStyle name="DELIMINER1" styleID="14" fgColor="800080" bgColor="FFFFFF" fontStyle="0" /> |
||||
<WordsStyle name="DELIMINER2" styleID="15" fgColor="808080" bgColor="FFFFFF" fontStyle="0" /> |
||||
<WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontStyle="0" /> |
||||
</Styles> |
||||
</UserLang> |
||||
</NotepadPlus> |
@ -1,40 +0,0 @@ |
||||
Welcome to the C# port of Google Protocol Buffers, written by Jon Skeet |
||||
(skeet@pobox.com) based on the work of many talented people. |
||||
|
||||
For more information about this port, visit its homepage: |
||||
http://protobuf-csharp-port.googlecode.com |
||||
|
||||
For more information about Protocol Buffers in general, visit the |
||||
project page for the C++, Java and Python project: |
||||
http://protobuf.googlecode.com |
||||
|
||||
|
||||
Release 0.9.1 |
||||
------------- |
||||
|
||||
Fix to release 0.9: |
||||
|
||||
- Include protos in binary download |
||||
- Fix issue 10: incorrect encoding of packed fields when serialized |
||||
size wasn't fetched first |
||||
|
||||
|
||||
Release 0.9 |
||||
----------- |
||||
|
||||
Due to popular demand, I have built a version of the binaries to put |
||||
on the web site. Currently these are set at assembly version 0.9, |
||||
and an assembly file version of 0.9. This should be seen as a mark |
||||
of the readiness of the release process more than the stability of |
||||
the code. As far as I'm aware, the code itself is perfectly fine: I |
||||
certainly have plans for more features particularly around making |
||||
code generation simpler, but you should feel confident about the |
||||
parsing and serialization of messages produced with this version of |
||||
the library. Of course, if you do find any problems, *please* report |
||||
them at the web site. |
||||
|
||||
Currently the downloadable release is built with the snk file which |
||||
is in the open source library. I am considering having a privately |
||||
held key so that you can check that you're building against a |
||||
"blessed" release - feedback on this (and any other aspect of the |
||||
release process) is very welcome. |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,16 +0,0 @@ |
||||
Current task list (not in order) |
||||
|
||||
- Remove multifile support |
||||
- Docs |
||||
- Clean up protogen code |
||||
- Avoid using reflection for messages which don't need it (is this |
||||
possible?) |
||||
- Bring service generation into line with Java |
||||
- Build protoc as a dll and use directly from protogen |
||||
- Check copyright is everywhere |
||||
- Work out how to unit test Silverlight code |
||||
- Reformat code |
||||
- Change generated format |
||||
- Add regions to copyright |
||||
- Build and publish binaries |
||||
- Work out why the Compact Framework 3.5 build fails under VS2010 |
Loading…
Reference in new issue