commit
b26c983c9b
227 changed files with 43422 additions and 3011 deletions
@ -1,8 +0,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 /nologo build.csproj /toolsversion:4.0 %3 %4 %5 %6 "/t:%BUILD_TARGET%" "/p:BuildConfiguration=%BUILD_CONFIG%;TargetVersion=2" |
|
@ -1,2 +1,8 @@ |
|||||||
@echo off |
@echo off |
||||||
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /t:FullBuild /toolsversion:4.0 %1 %2 %3 %4 %5 %6 |
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 /nologo build.csproj /t:%BUILD_TARGET% /toolsversion:4.0 "/p:Configuration=%BUILD_CONFIG%" %3 %4 %5 %6 |
||||||
|
@ -1,2 +0,0 @@ |
|||||||
@echo off |
|
||||||
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 /t:Rebuild %1 %2 %3 %4 "/p:BuildConfiguration=Debug_Silverlight;TargetVersion=2" |
|
@ -1,9 +0,0 @@ |
|||||||
@echo off |
|
||||||
PUSHD %~dp0 |
|
||||||
IF EXIST ..\build_output RMDIR /S /Q ..\build_output |
|
||||||
IF EXIST ..\build_temp RMDIR /S /Q ..\build_temp |
|
||||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 /t:Clean /v:m "/p:BuildConfiguration=Release;TargetVersion=2" |
|
||||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 /t:Clean /v:m "/p:BuildConfiguration=Debug;TargetVersion=2" |
|
||||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 /t:Clean /v:m "/p:BuildConfiguration=Release_Silverlight;TargetVersion=2" |
|
||||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 /t:Clean /v:m "/p:BuildConfiguration=Debug_Silverlight;TargetVersion=2" |
|
||||||
POPD |
|
@ -1,98 +0,0 @@ |
|||||||
REM @ECHO OFF |
|
||||||
@PUSHD %~dp0 |
|
||||||
@IF "%1" == "version" @GOTO VERSION |
|
||||||
@IF "%1" == "build" @GOTO BUILD |
|
||||||
@IF "%1" == "fpush" @GOTO FILEPUSH |
|
||||||
@IF "%1" == "nupush" @GOTO NUGETPUSH |
|
||||||
@IF "%1" == "push" @GOTO PUSH |
|
||||||
@GOTO HELP |
|
||||||
|
|
||||||
:VERSION |
|
||||||
IF NOT EXIST "..\build_temp\" MD "..\build_temp\" |
|
||||||
hg log -l 1 --template "Revision: {rev}" > ..\build_temp\revision.txt |
|
||||||
CMD.exe /Q /C "CD .. && lib\StampVersion.exe /major:2 /minor:4 /build:1 /revision:build_temp\revision.txt" |
|
||||||
@TYPE ..\src\ProtocolBuffers\Properties\AssemblyInfo.cs | FIND "AssemblyFileVersion" |
|
||||||
@ECHO. |
|
||||||
@ECHO NEXT: Use the above version number to run "%0 build {Version}" |
|
||||||
@ECHO. |
|
||||||
@GOTO EXIT |
|
||||||
|
|
||||||
:BUILD |
|
||||||
@IF "%2" == "" @GOTO HELP |
|
||||||
IF EXIST "C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin\sn.exe" SET WIN7SDK_DIR=C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin\ |
|
||||||
|
|
||||||
IF NOT EXIST "..\release-key" hg clone https://bitbucket.org/rknapp/protobuf-csharp-port-keyfile ..\release-key |
|
||||||
|
|
||||||
MD "%2" |
|
||||||
CMD.exe /Q /C "BuildAll.bat /verbosity:minimal "/p:AssemblyOriginatorKeyFile=%~dp0..\release-key\Google.ProtocolBuffers.snk" |
|
||||||
|
|
||||||
COPY /y ..\build_output\release-binaries.zip %2\protobuf-csharp-port-%2-release-binaries.zip |
|
||||||
COPY /y ..\build_output\full-binaries.zip %2\protobuf-csharp-port-%2-full-binaries.zip |
|
||||||
|
|
||||||
..\lib\NuGet.exe pack Google.ProtocolBuffers.nuspec -Symbols -Version %2 -NoPackageAnalysis -OutputDirectory %2 |
|
||||||
..\lib\NuGet.exe pack Google.ProtocolBuffersLite.nuspec -Symbols -Version %2 -NoPackageAnalysis -OutputDirectory %2 |
|
||||||
|
|
||||||
hg archive %2\protobuf-csharp-port-%2-source.zip |
|
||||||
|
|
||||||
"%WIN7SDK_DIR%sn.exe" -T ..\build_output\v2.0\Release\Google.ProtocolBuffers.dll |
|
||||||
@ECHO. |
|
||||||
@ECHO *********************************************************** |
|
||||||
@ECHO IMPORTANT: Verify the above key output is: 55f7125234beb589 |
|
||||||
@ECHO *********************************************************** |
|
||||||
@ECHO. |
|
||||||
@ECHO NEXT: Verify the output in %~dp0\%2 and then run "%0 push %2" |
|
||||||
@ECHO. |
|
||||||
@GOTO EXIT |
|
||||||
|
|
||||||
:PUSH |
|
||||||
@IF "%2" == "" @GOTO HELP |
|
||||||
|
|
||||||
hg commit -m "version %2" |
|
||||||
hg tag %2 |
|
||||||
hg push |
|
||||||
@ECHO. |
|
||||||
@ECHO NEXT: Verify the repository state and run "%0 fpush %2 {google-code-user} {google-code-password}" |
|
||||||
@ECHO. |
|
||||||
@GOTO EXIT |
|
||||||
|
|
||||||
:FILEPUSH |
|
||||||
@IF "%2" == "" @GOTO HELP |
|
||||||
@IF "%3" == "" @GOTO HELP |
|
||||||
@IF "%4" == "" @GOTO HELP |
|
||||||
SET GOOGLEUPLOAD=python.exe googlecode_upload.py --project protobuf-csharp-port --user "%3" --password "%4" |
|
||||||
|
|
||||||
%GOOGLEUPLOAD% --labels Type-Source,Featured --summary "Version %2 source" %2\protobuf-csharp-port-%2-source.zip |
|
||||||
%GOOGLEUPLOAD% --labels Type-Executable,Featured --summary "Version %2 binaries (all configurations)" %2\protobuf-csharp-port-%2-full-binaries.zip |
|
||||||
%GOOGLEUPLOAD% --labels Type-Executable,Featured --summary "Version %2 binaries (release only)" %2\protobuf-csharp-port-%2-release-binaries.zip |
|
||||||
|
|
||||||
@SET GOOGLEUPLOAD= |
|
||||||
@ECHO. |
|
||||||
@ECHO NEXT: Verify the uploads and run "%0 nupush %2" |
|
||||||
@ECHO. |
|
||||||
@GOTO EXIT |
|
||||||
|
|
||||||
:NUGETPUSH |
|
||||||
|
|
||||||
..\lib\NuGet.exe push "%2\Google.ProtocolBuffers.%2.nupkg" |
|
||||||
..\lib\NuGet.exe push "%2\Google.ProtocolBuffersLite.%2.nupkg" |
|
||||||
..\lib\NuGet.exe push "%2\Google.ProtocolBuffers.%2.symbols.nupkg" |
|
||||||
..\lib\NuGet.exe push "%2\Google.ProtocolBuffersLite.%2.symbols.nupkg" |
|
||||||
|
|
||||||
@ECHO. |
|
||||||
@ECHO NEXT: Verify the nuget packages at http://nuget.org |
|
||||||
@ECHO. |
|
||||||
@GOTO EXIT |
|
||||||
|
|
||||||
:HELP |
|
||||||
@ECHO. |
|
||||||
@ECHO Available commands, run in the following order: |
|
||||||
@ECHO 1. %0 version |
|
||||||
@ECHO 2. %0 build {version from step 1} |
|
||||||
@ECHO 3. %0 push {version from step 1} |
|
||||||
@ECHO 4. %0 fpush {version from step 1} {google-code-user} {google-code-password} |
|
||||||
@ECHO 5. %0 nupush {version from step 1} |
|
||||||
@ECHO. |
|
||||||
@GOTO EXIT |
|
||||||
|
|
||||||
:EXIT |
|
||||||
@POPD |
|
@ -1,2 +1,2 @@ |
|||||||
@echo off |
@echo off |
||||||
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 /t:RunBenchmarks %1 %2 %3 %4 "/p:BuildConfiguration=Release;TargetVersion=2" |
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 /t:RunBenchmarks %1 %2 %3 %4 |
||||||
|
@ -0,0 +1,20 @@ |
|||||||
|
@echo off |
||||||
|
SET BUILD_VERSION=%~1 |
||||||
|
SET BUILD_TARGET=%~2 |
||||||
|
SET BUILD_CONFIG=%~3 |
||||||
|
|
||||||
|
IF NOT "%BUILD_VERSION%"=="" GOTO RUN |
||||||
|
ECHO. |
||||||
|
ECHO Usage: build.bat platform [target] [config] [msbuild arguments] |
||||||
|
ECHO. |
||||||
|
ECHO - platform: CF20, CF35, NET20, NET35, NET40, PL40, SL20, SL30, or SL40 |
||||||
|
ECHO - [target]: Rebuild, Clean, Build, Test, or Publish |
||||||
|
ECHO - [config]: Debug or Release |
||||||
|
ECHO. |
||||||
|
EXIT /B 1 |
||||||
|
|
||||||
|
:RUN |
||||||
|
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 /nologo target.csproj /toolsversion:4.0 %4 %5 %6 "/t:%BUILD_TARGET%" "/p:Configuration=%BUILD_CONFIG%;TargetVersion=%BUILD_VERSION%" |
@ -1,8 +0,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 /nologo build.csproj /toolsversion:4.0 %3 %4 %5 %6 "/t:%BUILD_TARGET%" "/p:BuildConfiguration=%BUILD_CONFIG%;TargetVersion=3" |
|
@ -1,8 +0,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 /nologo build.csproj /toolsversion:4.0 %3 %4 %5 %6 "/t:%BUILD_TARGET%" "/p:BuildConfiguration=%BUILD_CONFIG%;TargetVersion=4" |
|
@ -0,0 +1,182 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<Project DefaultTargets="Publish" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||||
|
|
||||||
|
<!-- build targets --> |
||||||
|
<Target Name="Clean" DependsOnTargets="_Clean" /> |
||||||
|
<Target Name="Publish" DependsOnTargets="_Publish" /> |
||||||
|
|
||||||
|
<PropertyGroup> |
||||||
|
<ProjectName>Protocol Buffers</ProjectName> |
||||||
|
<VersionMajor>2</VersionMajor> |
||||||
|
<VersionMinor>4</VersionMinor> |
||||||
|
<VersionBuild>1</VersionBuild> |
||||||
|
<VersionRevision></VersionRevision> |
||||||
|
<VersionLabel></VersionLabel> |
||||||
|
|
||||||
|
<PackagePrefix>protobuf-csharp-port-</PackagePrefix> |
||||||
|
<PublishDebug>false</PublishDebug> |
||||||
|
|
||||||
|
<GoogleUsername></GoogleUsername> |
||||||
|
<GooglePassword></GooglePassword> |
||||||
|
|
||||||
|
<!--Directory Paths--> |
||||||
|
<ProjectDirectory>$(MSBuildProjectDirectory)\..</ProjectDirectory> |
||||||
|
<BuildTempDirectory>$(ProjectDirectory)\build_temp</BuildTempDirectory> |
||||||
|
<BuildOutputDirectory>$(ProjectDirectory)\build_output</BuildOutputDirectory> |
||||||
|
<SourceDirectory>$(ProjectDirectory)\src</SourceDirectory> |
||||||
|
<LibDirectory>$(ProjectDirectory)\lib</LibDirectory> |
||||||
|
|
||||||
|
<!-- File Paths --> |
||||||
|
<SigningKey>$(ProjectDirectory)\release-key\Google.ProtocolBuffers.snk</SigningKey> |
||||||
|
|
||||||
|
<!--Tool Paths--> |
||||||
|
<HgTool>hg.exe</HgTool> |
||||||
|
<Python>C:\Python25\python.exe</Python> |
||||||
|
<SnTool>$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A@InstallationFolder)Bin\sn.exe</SnTool> |
||||||
|
<StampVer>$(LibDirectory)\StampVersion.exe</StampVer> |
||||||
|
<ZipExePath>$(LibDirectory)\7-Zip 9.20\7za.exe</ZipExePath> |
||||||
|
<NuGet>$(LibDirectory)\NuGet.exe</NuGet> |
||||||
|
<ProtogenExePath>$(BuildOutputDirectory)\tools\protogen.exe</ProtogenExePath> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<!-- Import user settings --> |
||||||
|
<Import Project="$(MSBuildProjectFullPath).user" Condition="Exists('$(MSBuildProjectFullPath).user')" /> |
||||||
|
|
||||||
|
<!-- Files --> |
||||||
|
<ItemGroup> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<!-- Tasks --> |
||||||
|
|
||||||
|
<Target Name="_Publish" DependsOnTargets="_PrepBuild;_PushAll" /> |
||||||
|
|
||||||
|
<Target Name="_Prerequisites" DependsOnTargets="_CheckEnvironment;_ReadVersion" /> |
||||||
|
<Target Name="_PrepBuild" DependsOnTargets="_Clean;_Prerequisites;_StampVersion;_GenerateSource;_Build;_NugetPack;_HgLabel" /> |
||||||
|
<Target Name="_PushAll" DependsOnTargets="_HgPush;_PkgPush;_NugetPush" /> |
||||||
|
|
||||||
|
<Target Name="_Clean"> |
||||||
|
<MSBuild Properties="Configuration=Debug;" Targets="Clean" Projects="$(MSBuildProjectDirectory)\target.csproj" /> |
||||||
|
<MSBuild Properties="Configuration=Release;" Targets="Clean" Projects="$(MSBuildProjectDirectory)\target.csproj" /> |
||||||
|
<MakeDir Directories="$(BuildTempDirectory)" /> |
||||||
|
<MakeDir Directories="$(BuildOutputDirectory)" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_WriteUserConfig"> |
||||||
|
<ItemGroup> |
||||||
|
<Lines Include="<Project xmlns='http://schemas.microsoft.com/developer/msbuild/2003'>" /> |
||||||
|
<Lines Include=" <PropertyGroup>"/> |
||||||
|
<Lines Include=" <GoogleUsername> (Enter your google-code user/password here) </GoogleUsername>"/> |
||||||
|
<Lines Include=" <GooglePassword></GooglePassword>"/> |
||||||
|
<Lines Include=" </PropertyGroup>" /> |
||||||
|
<Lines Include="</Project>" /> |
||||||
|
</ItemGroup> |
||||||
|
<WriteLinesToFile File="$(MSBuildProjectFullPath).user" Lines="@(Lines)" Overwrite="true" Condition="!Exists('$(MSBuildProjectFullPath).user')" /> |
||||||
|
<Exec Command="Notepad.exe $(MSBuildProjectFullPath).user" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_CheckEnvironment"> |
||||||
|
<!-- Require google credentials --> |
||||||
|
<CallTarget Targets="_WriteUserConfig" Condition=" '$(GooglePassword)' == '' " /> |
||||||
|
<Error Text="Restart after you verify your credentials in $(MSBuildProjectFullPath).user" Condition=" '$(GooglePassword)' == '' " /> |
||||||
|
<!-- Require Win7.0A SDK to verify strong-name --> |
||||||
|
<Error Text="Unable to locate Win7SDK Tools: $(SnTool)" Condition="!Exists($(SnTool))" /> |
||||||
|
<!-- Require Python 2.5 installed --> |
||||||
|
<Error Text="Unable to locate Python 2.5: $(Python)" Condition="!Exists($(Python))" /> |
||||||
|
<!-- Require production signing key --> |
||||||
|
<Exec Command="$(HgTool) clone https://bitbucket.org/rknapp/protobuf-csharp-port-keyfile $(ProjectDirectory)\release-key" Condition="!Exists('$(SigningKey)')" /> |
||||||
|
<Error Text="Unable to locate release signing key: $(SigningKey)" Condition="!Exists($(SigningKey))" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_ReadVersion" Condition=" '$(VersionLabel)' == '' "> |
||||||
|
<Exec Command="$(HgTool) log -l 1 --template "{rev}" > "$(BuildTempDirectory)\revision.txt""></Exec> |
||||||
|
<ReadLinesFromFile File="$(BuildTempDirectory)\revision.txt"> |
||||||
|
<Output TaskParameter="Lines" PropertyName="VersionRevision"/> |
||||||
|
</ReadLinesFromFile> |
||||||
|
|
||||||
|
<PropertyGroup> |
||||||
|
<VersionLabel>$(VersionMajor).$(VersionMinor).$(VersionBuild).$(VersionRevision)</VersionLabel> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<Message Text="Building version $(VersionLabel)" Importance="high" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_StampVersion" DependsOnTargets="_Prerequisites"> |
||||||
|
<Exec Command="$(StampVer) /major:$(VersionMajor) /minor:$(VersionMinor) /build:$(VersionBuild) /revision:$(VersionRevision)" WorkingDirectory="$(SourceDirectory)" /> |
||||||
|
<Exec Command="FIND "$(VersionLabel)" ProtocolBuffers\Properties\AssemblyInfo.cs" WorkingDirectory="$(SourceDirectory)" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_GenerateSource" DependsOnTargets="_Prerequisites"> |
||||||
|
<MSBuild Properties="Configuration=Release;AssemblyOriginatorKeyFile=$(SigningKey)" Targets="GenerateProjects;BuildTools;GenerateSource" Projects="$(MSBuildProjectDirectory)\build.csproj" /> |
||||||
|
<Exec Command=""$(SnTool)" -T "$(ProtogenExePath)" > signkey.txt" WorkingDirectory="$(BuildTempDirectory)" /> |
||||||
|
<!-- Make sure we are signing with the correct key --> |
||||||
|
<Exec Command="FIND "55f7125234beb589" signkey.txt" WorkingDirectory="$(BuildTempDirectory)" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_Build" DependsOnTargets="_Prerequisites"> |
||||||
|
<!-- Release Build --> |
||||||
|
<MSBuild Properties="Configuration=Release;AssemblyOriginatorKeyFile=$(SigningKey)" Targets="_CompileAll" Projects="$(MSBuildProjectDirectory)\build.csproj" /> |
||||||
|
<MSBuild Properties="Configuration=Release;AssemblyOriginatorKeyFile=$(SigningKey);PackageName=$(PackagePrefix)$(VersionLabel)-release" Targets="GeneratePackage" Projects="$(MSBuildProjectDirectory)\build.csproj" /> |
||||||
|
<!-- Debug Build --> |
||||||
|
<MSBuild Condition=" '$(PublishDebug)' == 'true' " Properties="Configuration=Debug;AssemblyOriginatorKeyFile=$(SigningKey)" Targets="_CompileAll" Projects="$(MSBuildProjectDirectory)\build.csproj" /> |
||||||
|
<MSBuild Condition=" '$(PublishDebug)' == 'true' " Properties="Configuration=Debug;AssemblyOriginatorKeyFile=$(SigningKey);PackageName=$(PackagePrefix)$(VersionLabel)-full" Targets="GeneratePackage" Projects="$(MSBuildProjectDirectory)\build.csproj" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_HgLabel" DependsOnTargets="_Prerequisites"> |
||||||
|
<Exec Command="$(HgTool) tag $(VersionLabel)" WorkingDirectory="$(ProjectDirectory)" /> |
||||||
|
<Exec Command="$(HgTool) commit -m "version $(VersionLabel)"" WorkingDirectory="$(ProjectDirectory)" /> |
||||||
|
<Exec Command="$(HgTool) archive $(BuildTempDirectory)\$(PackagePrefix)$(VersionLabel)-source.zip" WorkingDirectory="$(ProjectDirectory)" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_HgPush" DependsOnTargets="_Prerequisites"> |
||||||
|
<Exec Command="$(HgTool) push" WorkingDirectory="$(ProjectDirectory)" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_PkgPush" DependsOnTargets="_Prerequisites"> |
||||||
|
<PropertyGroup> |
||||||
|
<UploadPackage>$(Python) "$(MSBuildProjectDirectory)\googlecode_upload.py" --project protobuf-csharp-port --user "$(GoogleUsername)" --password "$(GooglePassword)"</UploadPackage> |
||||||
|
|
||||||
|
<SourcePackage>$(BuildTempDirectory)\$(PackagePrefix)$(VersionLabel)-source.zip</SourcePackage> |
||||||
|
<ReleasePackageBin>$(BuildTempDirectory)\$(PackagePrefix)$(VersionLabel)-release-binaries.zip</ReleasePackageBin> |
||||||
|
<ReleasePackageSyb>$(BuildTempDirectory)\$(PackagePrefix)$(VersionLabel)-release-symbols.zip</ReleasePackageSyb> |
||||||
|
<DebugPackageBin>$(BuildTempDirectory)\$(PackagePrefix)$(VersionLabel)-full-binaries.zip</DebugPackageBin> |
||||||
|
<DebugPackageSyb>$(BuildTempDirectory)\$(PackagePrefix)$(VersionLabel)-full-symbols.zip</DebugPackageSyb> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<Error Condition="!Exists('$(SourcePackage)')" Text="File not found: $(SourcePackage)" /> |
||||||
|
<Error Condition="!Exists('$(ReleasePackageBin)')" Text="File not found: $(ReleasePackageBin)" /> |
||||||
|
<Error Condition="!Exists('$(ReleasePackageSyb)')" Text="File not found: $(ReleasePackageSyb)" /> |
||||||
|
<Error Condition="'$(PublishDebug)' == 'true' And !Exists('$(DebugPackageBin)')" Text="File not found: $(DebugPackageBin)" /> |
||||||
|
<Error Condition="'$(PublishDebug)' == 'true' And !Exists('$(DebugPackageSyb)')" Text="File not found: $(DebugPackageSyb)" /> |
||||||
|
|
||||||
|
<Exec WorkingDirectory="$(ProjectDirectory)" |
||||||
|
Command="$(UploadPackage) --labels Type-Source,Featured --summary "Version $(VersionLabel) source" $(SourcePackage)" /> |
||||||
|
|
||||||
|
<Exec WorkingDirectory="$(ProjectDirectory)" |
||||||
|
Command="$(UploadPackage) --labels Type-Executable,Featured --summary "Version $(VersionLabel) release binaries only" $(ReleasePackageBin)" /> |
||||||
|
<Exec WorkingDirectory="$(ProjectDirectory)" |
||||||
|
Command="$(UploadPackage) --labels Type-Executable,Featured --summary "Version $(VersionLabel) release binaries and symbols" $(ReleasePackageSyb)" /> |
||||||
|
|
||||||
|
<Exec WorkingDirectory="$(ProjectDirectory)" Condition=" '$(PublishDebug)' == 'true' " |
||||||
|
Command="$(UploadPackage) --labels Type-Executable,Featured --summary "Version $(VersionLabel) all binaries" $(DebugPackageBin)" /> |
||||||
|
<Exec WorkingDirectory="$(ProjectDirectory)" Condition=" '$(PublishDebug)' == 'true' " |
||||||
|
Command="$(UploadPackage) --labels Type-Executable,Featured --summary "Version $(VersionLabel) all binaries and symbols" $(DebugPackageSyb)" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_NugetPack" DependsOnTargets="_Prerequisites"> |
||||||
|
<Exec WorkingDirectory="$(MSBuildProjectDirectory)" |
||||||
|
Command="$(NuGet) update -self" /> |
||||||
|
<Exec WorkingDirectory="$(MSBuildProjectDirectory)" |
||||||
|
Command="$(NuGet) pack Google.ProtocolBuffers.nuspec -Symbols -Version $(VersionLabel) -NoPackageAnalysis -OutputDirectory $(BuildTempDirectory)" /> |
||||||
|
<Exec WorkingDirectory="$(MSBuildProjectDirectory)" |
||||||
|
Command="$(NuGet) pack Google.ProtocolBuffersLite.nuspec -Symbols -Version $(VersionLabel) -NoPackageAnalysis -OutputDirectory $(BuildTempDirectory)" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_NugetPush" DependsOnTargets="_Prerequisites"> |
||||||
|
<Exec WorkingDirectory="$(BuildTempDirectory)" Command="$(NuGet) push Google.ProtocolBuffers.$(VersionLabel).nupkg" ContinueOnError="true" /> |
||||||
|
<Exec WorkingDirectory="$(BuildTempDirectory)" Command="$(NuGet) push Google.ProtocolBuffersLite.$(VersionLabel).nupkg" ContinueOnError="true" /> |
||||||
|
|
||||||
|
<Exec WorkingDirectory="$(BuildTempDirectory)" Command="$(NuGet) push Google.ProtocolBuffers.$(VersionLabel).symbols.nupkg" ContinueOnError="true" /> |
||||||
|
<Exec WorkingDirectory="$(BuildTempDirectory)" Command="$(NuGet) push Google.ProtocolBuffersLite.$(VersionLabel).symbols.nupkg" ContinueOnError="true" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
</Project> |
@ -0,0 +1,167 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||||
|
|
||||||
|
<!-- ********************************************************************************************** |
||||||
|
High-level Targets |
||||||
|
*********************************************************************************************** --> |
||||||
|
|
||||||
|
<Target Name="Clean" DependsOnTargets="_Clean" /> |
||||||
|
<Target Name="Build" DependsOnTargets="_Compile;_Test" /> |
||||||
|
<Target Name="Test" DependsOnTargets="_Test" /> |
||||||
|
<Target Name="Rebuild" DependsOnTargets="Clean;Build" /> |
||||||
|
<Target Name="Publish" DependsOnTargets="Clean;Build;_Publish" /> |
||||||
|
|
||||||
|
<!-- ********************************************************************************************** |
||||||
|
Properties |
||||||
|
*********************************************************************************************** --> |
||||||
|
|
||||||
|
<PropertyGroup> |
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||||
|
<Platform Condition=" '$(Platform)' == '' ">Any CPU</Platform> |
||||||
|
<TargetVersion Condition=" '$(TargetVersion)' == '' ">NET20</TargetVersion> |
||||||
|
<BuildParams></BuildParams> |
||||||
|
|
||||||
|
<!--Directory Paths--> |
||||||
|
<ProjectDirectory>$(MSBuildProjectDirectory)\..</ProjectDirectory> |
||||||
|
<SourceDirectory>$(ProjectDirectory)\src</SourceDirectory> |
||||||
|
<LibDirectory>$(ProjectDirectory)\lib</LibDirectory> |
||||||
|
|
||||||
|
<!--File Paths--> |
||||||
|
<BuildTempDirectory>$(ProjectDirectory)\build_temp\$(Configuration)\$(TargetVersion)</BuildTempDirectory> |
||||||
|
<BuildOutputDirectory>$(ProjectDirectory)\build_output\$(Configuration)\$(TargetVersion)</BuildOutputDirectory> |
||||||
|
<SolutionFile>$(SourceDirectory)\ProtocolBuffersLibrary.$(TargetVersion).sln</SolutionFile> |
||||||
|
|
||||||
|
<!--Tool Paths--> |
||||||
|
<NUnitExePath>$(LibDirectory)\NUnit\tools\nunit-console.exe</NUnitExePath> |
||||||
|
<StatLightExePath>$(LibDirectory)\StatLight\tools\StatLight.exe</StatLightExePath> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<!-- ********************************************************************************************** |
||||||
|
Target Versions |
||||||
|
*********************************************************************************************** --> |
||||||
|
|
||||||
|
<PropertyGroup Condition=" '$(TargetVersion)' == 'NET20' "> |
||||||
|
<BuildTools>3.5</BuildTools> |
||||||
|
<TestFramework>NUNIT</TestFramework> |
||||||
|
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion> |
||||||
|
</PropertyGroup> |
||||||
|
<PropertyGroup Condition=" '$(TargetVersion)' == 'NET35' "> |
||||||
|
<BuildTools>3.5</BuildTools> |
||||||
|
<TestFramework>NUNIT</TestFramework> |
||||||
|
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
||||||
|
</PropertyGroup> |
||||||
|
<PropertyGroup Condition=" '$(TargetVersion)' == 'NET40' "> |
||||||
|
<BuildTools>4.0</BuildTools> |
||||||
|
<TestFramework>NUNIT</TestFramework> |
||||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
||||||
|
</PropertyGroup> |
||||||
|
<PropertyGroup Condition=" '$(TargetVersion)' == 'CF20' "> |
||||||
|
<BuildTools>3.5</BuildTools> |
||||||
|
<TestFramework>NONE</TestFramework> |
||||||
|
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion> |
||||||
|
</PropertyGroup> |
||||||
|
<PropertyGroup Condition=" '$(TargetVersion)' == 'CF35' "> |
||||||
|
<BuildTools>3.5</BuildTools> |
||||||
|
<TestFramework>NONE</TestFramework> |
||||||
|
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
||||||
|
</PropertyGroup> |
||||||
|
<PropertyGroup Condition=" '$(TargetVersion)' == 'SL20' "> |
||||||
|
<BuildTools>3.5</BuildTools> |
||||||
|
<TestFramework>SILVERLIGHT</TestFramework> |
||||||
|
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion> |
||||||
|
</PropertyGroup> |
||||||
|
<PropertyGroup Condition=" '$(TargetVersion)' == 'SL30' "> |
||||||
|
<BuildTools>3.5</BuildTools> |
||||||
|
<TestFramework>SILVERLIGHT</TestFramework> |
||||||
|
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
||||||
|
</PropertyGroup> |
||||||
|
<PropertyGroup Condition=" '$(TargetVersion)' == 'SL40' "> |
||||||
|
<BuildTools>4.0</BuildTools> |
||||||
|
<TestFramework>SILVERLIGHT</TestFramework> |
||||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
||||||
|
</PropertyGroup> |
||||||
|
<PropertyGroup Condition=" '$(TargetVersion)' == 'PL40' "> |
||||||
|
<BuildTools>4.0</BuildTools> |
||||||
|
<TestFramework>SILVERLIGHT</TestFramework> |
||||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
||||||
|
<BuildOutputDirectory>$(ProjectDirectory)\build_output\$(Configuration)\portable-net40+sl4+sl5+wp7+wp8+win8</BuildOutputDirectory> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<!-- ********************************************************************************************** |
||||||
|
File Groups |
||||||
|
*********************************************************************************************** --> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<WorkingDirectories Include="$(BuildTempDirectory)" /> |
||||||
|
<WorkingDirectories Include="$(BuildOutputDirectory)" /> |
||||||
|
|
||||||
|
<TestContainer Include="$(SourceDirectory)\ProtocolBuffers.Test\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffers.Test.dll" /> |
||||||
|
<TestContainer Include="$(SourceDirectory)\ProtocolBuffersLite.Test\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffersLite.Test.dll" /> |
||||||
|
<TestContainer Include="$(SourceDirectory)\ProtocolBuffersLite.Test\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffersMixedLite.Test.dll" /> |
||||||
|
|
||||||
|
<StatLightTestContainer Include="$(SourceDirectory)\ProtocolBuffers.Test\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffers.Test.xap" /> |
||||||
|
<StatLightTestContainer Include="$(SourceDirectory)\ProtocolBuffersLite.Test\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffersLite.Test.xap" /> |
||||||
|
<StatLightTestContainer Include="$(SourceDirectory)\ProtocolBuffersLite.Test\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffersMixedLite.Test.xap" /> |
||||||
|
|
||||||
|
<PublishItem Include="$(SourceDirectory)\ProtocolBuffers\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffers.dll" /> |
||||||
|
<PublishItem Include="$(SourceDirectory)\ProtocolBuffers\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffers.pdb" /> |
||||||
|
<PublishItem Include="$(SourceDirectory)\ProtocolBuffers\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffers.xml" /> |
||||||
|
<PublishItem Include="$(SourceDirectory)\ProtocolBuffers\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffersLite.dll" /> |
||||||
|
<PublishItem Include="$(SourceDirectory)\ProtocolBuffers\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffersLite.pdb" /> |
||||||
|
<PublishItem Include="$(SourceDirectory)\ProtocolBuffers\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffersLite.xml" /> |
||||||
|
<PublishItem Include="$(SourceDirectory)\ProtocolBuffers.Serialization\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffers.Serialization.dll" /> |
||||||
|
<PublishItem Include="$(SourceDirectory)\ProtocolBuffers.Serialization\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffers.Serialization.pdb" /> |
||||||
|
<PublishItem Include="$(SourceDirectory)\ProtocolBuffers.Serialization\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffers.Serialization.xml" /> |
||||||
|
<PublishItem Include="$(SourceDirectory)\ProtocolBuffers.Serialization\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffersLite.Serialization.dll" /> |
||||||
|
<PublishItem Include="$(SourceDirectory)\ProtocolBuffers.Serialization\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffersLite.Serialization.pdb" /> |
||||||
|
<PublishItem Include="$(SourceDirectory)\ProtocolBuffers.Serialization\bin\$(TargetVersion)\$(Configuration)\Google.ProtocolBuffersLite.Serialization.xml" /> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<!-- ********************************************************************************************** |
||||||
|
Targets For Build |
||||||
|
*********************************************************************************************** --> |
||||||
|
|
||||||
|
<Target Name="_Configured"> |
||||||
|
<Message Text="Building $(TargetVersion) for configuration $(Configuration), platform $(Platform)" Importance="normal" /> |
||||||
|
<Error Text="Unknown or missing value for TargetVersion=[value]" Condition=" '$(BuildTools)' == '' " /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_Clean" DependsOnTargets="_Configured"> |
||||||
|
<RemoveDir Directories="@(WorkingDirectories)" Condition="Exists(%(WorkingDirectories.Identity))" /> |
||||||
|
<MSBuild Targets="Clean" Projects="$(SolutionFile)" ToolsVersion="$(BuildTools)" |
||||||
|
Properties="Configuration=$(Configuration);Platform=$(Platform);" |
||||||
|
/> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_Compile" DependsOnTargets="_Configured"> |
||||||
|
<MSBuild Targets="Build" Projects="$(SolutionFile)" ToolsVersion="$(BuildTools)" |
||||||
|
Properties="Configuration=$(Configuration);Platform=$(Platform);$(BuildParams)" |
||||||
|
/> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_Publish" DependsOnTargets="_Configured"> |
||||||
|
<MakeDir Directories="$(BuildOutputDirectory)" /> |
||||||
|
<Copy SourceFiles="@(PublishItem)" DestinationFolder="$(BuildOutputDirectory)" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<!-- ********************************************************************************************** |
||||||
|
Targets For Test |
||||||
|
*********************************************************************************************** --> |
||||||
|
|
||||||
|
<Target Name="_Test" DependsOnTargets="_Configured"> |
||||||
|
<MakeDir Directories="$(BuildTempDirectory)" /> |
||||||
|
<CallTarget Targets="_RunNunit" Condition=" '$(TestFramework)'=='NUNIT' " /> |
||||||
|
<CallTarget Targets="_RunStatLight" Condition=" '$(TestFramework)'=='SILVERLIGHT' " /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_RunNunit"> |
||||||
|
<Copy SourceFiles="$(LibDirectory)\NUnit-config\nunit-console.$(TargetFrameworkVersion).config" DestinationFiles="$(NUnitExePath).config" /> |
||||||
|
<Exec Command=""$(NUnitExePath)" /nologo /noshadow %(TestContainer.Identity) /xml:$(BuildTempDirectory)\%(TestContainer.Filename).xml" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<Target Name="_RunStatLight"> |
||||||
|
<Exec |
||||||
|
Command=""$(StatLightExePath)" -x %(StatLightTestContainer.Identity) --ReportOutputFileType=NUnit --ReportOutputFile=$(BuildTempDirectory)\%(StatLightTestContainer.Filename).xml" /> |
||||||
|
</Target> |
||||||
|
|
||||||
|
</Project> |
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,340 @@ |
|||||||
|
// Generated by ProtoGen, Version=2.4.1.473, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT! |
||||||
|
#pragma warning disable 1591, 0612, 3021 |
||||||
|
#region Designer generated code |
||||||
|
|
||||||
|
using pb = global::Google.ProtocolBuffers; |
||||||
|
using pbc = global::Google.ProtocolBuffers.Collections; |
||||||
|
using pbd = global::Google.ProtocolBuffers.Descriptors; |
||||||
|
using scg = global::System.Collections.Generic; |
||||||
|
namespace Google.ProtocolBuffers.TestProtos { |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||||
|
public static partial class UnitTestImportProtoFile { |
||||||
|
|
||||||
|
#region Extension registration |
||||||
|
public static void RegisterAllExtensions(pb::ExtensionRegistry registry) { |
||||||
|
} |
||||||
|
#endregion |
||||||
|
#region Static variables |
||||||
|
internal static pbd::MessageDescriptor internal__static_protobuf_unittest_import_ImportMessage__Descriptor; |
||||||
|
internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ImportMessage, global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder> internal__static_protobuf_unittest_import_ImportMessage__FieldAccessorTable; |
||||||
|
#endregion |
||||||
|
#region Descriptor |
||||||
|
public static pbd::FileDescriptor Descriptor { |
||||||
|
get { return descriptor; } |
||||||
|
} |
||||||
|
private static pbd::FileDescriptor descriptor; |
||||||
|
|
||||||
|
static UnitTestImportProtoFile() { |
||||||
|
byte[] descriptorData = global::System.Convert.FromBase64String( |
||||||
|
"CiVnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0LnByb3RvEhhwcm90" + |
||||||
|
"b2J1Zl91bml0dGVzdF9pbXBvcnQaJGdvb2dsZS9wcm90b2J1Zi9jc2hhcnBf" + |
||||||
|
"b3B0aW9ucy5wcm90byIaCg1JbXBvcnRNZXNzYWdlEgkKAWQYASABKAUqPAoK" + |
||||||
|
"SW1wb3J0RW51bRIOCgpJTVBPUlRfRk9PEAcSDgoKSU1QT1JUX0JBUhAIEg4K" + |
||||||
|
"CklNUE9SVF9CQVoQCUJbChhjb20uZ29vZ2xlLnByb3RvYnVmLnRlc3RIAcI+" + |
||||||
|
"PAohR29vZ2xlLlByb3RvY29sQnVmZmVycy5UZXN0UHJvdG9zEhdVbml0VGVz" + |
||||||
|
"dEltcG9ydFByb3RvRmlsZQ=="); |
||||||
|
pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) { |
||||||
|
descriptor = root; |
||||||
|
internal__static_protobuf_unittest_import_ImportMessage__Descriptor = Descriptor.MessageTypes[0]; |
||||||
|
internal__static_protobuf_unittest_import_ImportMessage__FieldAccessorTable = |
||||||
|
new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ImportMessage, global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder>(internal__static_protobuf_unittest_import_ImportMessage__Descriptor, |
||||||
|
new string[] { "D", }); |
||||||
|
pb::ExtensionRegistry registry = pb::ExtensionRegistry.CreateInstance(); |
||||||
|
RegisterAllExtensions(registry); |
||||||
|
global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.RegisterAllExtensions(registry); |
||||||
|
return registry; |
||||||
|
}; |
||||||
|
pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
||||||
|
new pbd::FileDescriptor[] { |
||||||
|
global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, |
||||||
|
}, assigner); |
||||||
|
} |
||||||
|
#endregion |
||||||
|
|
||||||
|
} |
||||||
|
#region Enums |
||||||
|
public enum ImportEnum { |
||||||
|
IMPORT_FOO = 7, |
||||||
|
IMPORT_BAR = 8, |
||||||
|
IMPORT_BAZ = 9, |
||||||
|
} |
||||||
|
|
||||||
|
#endregion |
||||||
|
|
||||||
|
#region Messages |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||||
|
public sealed partial class ImportMessage : pb::GeneratedMessage<ImportMessage, ImportMessage.Builder> { |
||||||
|
private ImportMessage() { } |
||||||
|
private static readonly ImportMessage defaultInstance = new ImportMessage().MakeReadOnly(); |
||||||
|
private static readonly string[] _importMessageFieldNames = new string[] { "d" }; |
||||||
|
private static readonly uint[] _importMessageFieldTags = new uint[] { 8 }; |
||||||
|
public static ImportMessage DefaultInstance { |
||||||
|
get { return defaultInstance; } |
||||||
|
} |
||||||
|
|
||||||
|
public override ImportMessage DefaultInstanceForType { |
||||||
|
get { return DefaultInstance; } |
||||||
|
} |
||||||
|
|
||||||
|
protected override ImportMessage ThisMessage { |
||||||
|
get { return this; } |
||||||
|
} |
||||||
|
|
||||||
|
public static pbd::MessageDescriptor Descriptor { |
||||||
|
get { return global::Google.ProtocolBuffers.TestProtos.UnitTestImportProtoFile.internal__static_protobuf_unittest_import_ImportMessage__Descriptor; } |
||||||
|
} |
||||||
|
|
||||||
|
protected override pb::FieldAccess.FieldAccessorTable<ImportMessage, ImportMessage.Builder> InternalFieldAccessors { |
||||||
|
get { return global::Google.ProtocolBuffers.TestProtos.UnitTestImportProtoFile.internal__static_protobuf_unittest_import_ImportMessage__FieldAccessorTable; } |
||||||
|
} |
||||||
|
|
||||||
|
public const int DFieldNumber = 1; |
||||||
|
private bool hasD; |
||||||
|
private int d_; |
||||||
|
public bool HasD { |
||||||
|
get { return hasD; } |
||||||
|
} |
||||||
|
public int D { |
||||||
|
get { return d_; } |
||||||
|
} |
||||||
|
|
||||||
|
public override bool IsInitialized { |
||||||
|
get { |
||||||
|
return true; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public override void WriteTo(pb::ICodedOutputStream output) { |
||||||
|
int size = SerializedSize; |
||||||
|
string[] field_names = _importMessageFieldNames; |
||||||
|
if (hasD) { |
||||||
|
output.WriteInt32(1, field_names[0], D); |
||||||
|
} |
||||||
|
UnknownFields.WriteTo(output); |
||||||
|
} |
||||||
|
|
||||||
|
private int memoizedSerializedSize = -1; |
||||||
|
public override int SerializedSize { |
||||||
|
get { |
||||||
|
int size = memoizedSerializedSize; |
||||||
|
if (size != -1) return size; |
||||||
|
|
||||||
|
size = 0; |
||||||
|
if (hasD) { |
||||||
|
size += pb::CodedOutputStream.ComputeInt32Size(1, D); |
||||||
|
} |
||||||
|
size += UnknownFields.SerializedSize; |
||||||
|
memoizedSerializedSize = size; |
||||||
|
return size; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public static ImportMessage ParseFrom(pb::ByteString data) { |
||||||
|
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
||||||
|
} |
||||||
|
public static ImportMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
||||||
|
return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
||||||
|
} |
||||||
|
public static ImportMessage ParseFrom(byte[] data) { |
||||||
|
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
||||||
|
} |
||||||
|
public static ImportMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
||||||
|
return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
||||||
|
} |
||||||
|
public static ImportMessage ParseFrom(global::System.IO.Stream input) { |
||||||
|
return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
||||||
|
} |
||||||
|
public static ImportMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
||||||
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
||||||
|
} |
||||||
|
public static ImportMessage ParseDelimitedFrom(global::System.IO.Stream input) { |
||||||
|
return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
||||||
|
} |
||||||
|
public static ImportMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
||||||
|
return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
||||||
|
} |
||||||
|
public static ImportMessage ParseFrom(pb::ICodedInputStream input) { |
||||||
|
return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
||||||
|
} |
||||||
|
public static ImportMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
||||||
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
||||||
|
} |
||||||
|
private ImportMessage MakeReadOnly() { |
||||||
|
return this; |
||||||
|
} |
||||||
|
|
||||||
|
public static Builder CreateBuilder() { return new Builder(); } |
||||||
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
||||||
|
public override Builder CreateBuilderForType() { return new Builder(); } |
||||||
|
public static Builder CreateBuilder(ImportMessage prototype) { |
||||||
|
return new Builder(prototype); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||||
|
public sealed partial class Builder : pb::GeneratedBuilder<ImportMessage, Builder> { |
||||||
|
protected override Builder ThisBuilder { |
||||||
|
get { return this; } |
||||||
|
} |
||||||
|
public Builder() { |
||||||
|
result = DefaultInstance; |
||||||
|
resultIsReadOnly = true; |
||||||
|
} |
||||||
|
internal Builder(ImportMessage cloneFrom) { |
||||||
|
result = cloneFrom; |
||||||
|
resultIsReadOnly = true; |
||||||
|
} |
||||||
|
|
||||||
|
private bool resultIsReadOnly; |
||||||
|
private ImportMessage result; |
||||||
|
|
||||||
|
private ImportMessage PrepareBuilder() { |
||||||
|
if (resultIsReadOnly) { |
||||||
|
ImportMessage original = result; |
||||||
|
result = new ImportMessage(); |
||||||
|
resultIsReadOnly = false; |
||||||
|
MergeFrom(original); |
||||||
|
} |
||||||
|
return result; |
||||||
|
} |
||||||
|
|
||||||
|
public override bool IsInitialized { |
||||||
|
get { return result.IsInitialized; } |
||||||
|
} |
||||||
|
|
||||||
|
protected override ImportMessage MessageBeingBuilt { |
||||||
|
get { return PrepareBuilder(); } |
||||||
|
} |
||||||
|
|
||||||
|
public override Builder Clear() { |
||||||
|
result = DefaultInstance; |
||||||
|
resultIsReadOnly = true; |
||||||
|
return this; |
||||||
|
} |
||||||
|
|
||||||
|
public override Builder Clone() { |
||||||
|
if (resultIsReadOnly) { |
||||||
|
return new Builder(result); |
||||||
|
} else { |
||||||
|
return new Builder().MergeFrom(result); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public override pbd::MessageDescriptor DescriptorForType { |
||||||
|
get { return global::Google.ProtocolBuffers.TestProtos.ImportMessage.Descriptor; } |
||||||
|
} |
||||||
|
|
||||||
|
public override ImportMessage DefaultInstanceForType { |
||||||
|
get { return global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance; } |
||||||
|
} |
||||||
|
|
||||||
|
public override ImportMessage BuildPartial() { |
||||||
|
if (resultIsReadOnly) { |
||||||
|
return result; |
||||||
|
} |
||||||
|
resultIsReadOnly = true; |
||||||
|
return result.MakeReadOnly(); |
||||||
|
} |
||||||
|
|
||||||
|
public override Builder MergeFrom(pb::IMessage other) { |
||||||
|
if (other is ImportMessage) { |
||||||
|
return MergeFrom((ImportMessage) other); |
||||||
|
} else { |
||||||
|
base.MergeFrom(other); |
||||||
|
return this; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public override Builder MergeFrom(ImportMessage other) { |
||||||
|
if (other == global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance) return this; |
||||||
|
PrepareBuilder(); |
||||||
|
if (other.HasD) { |
||||||
|
D = other.D; |
||||||
|
} |
||||||
|
this.MergeUnknownFields(other.UnknownFields); |
||||||
|
return this; |
||||||
|
} |
||||||
|
|
||||||
|
public override Builder MergeFrom(pb::ICodedInputStream input) { |
||||||
|
return MergeFrom(input, pb::ExtensionRegistry.Empty); |
||||||
|
} |
||||||
|
|
||||||
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
||||||
|
PrepareBuilder(); |
||||||
|
pb::UnknownFieldSet.Builder unknownFields = null; |
||||||
|
uint tag; |
||||||
|
string field_name; |
||||||
|
while (input.ReadTag(out tag, out field_name)) { |
||||||
|
if(tag == 0 && field_name != null) { |
||||||
|
int field_ordinal = global::System.Array.BinarySearch(_importMessageFieldNames, field_name, global::System.StringComparer.Ordinal); |
||||||
|
if(field_ordinal >= 0) |
||||||
|
tag = _importMessageFieldTags[field_ordinal]; |
||||||
|
else { |
||||||
|
if (unknownFields == null) { |
||||||
|
unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
||||||
|
} |
||||||
|
ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
||||||
|
continue; |
||||||
|
} |
||||||
|
} |
||||||
|
switch (tag) { |
||||||
|
case 0: { |
||||||
|
throw pb::InvalidProtocolBufferException.InvalidTag(); |
||||||
|
} |
||||||
|
default: { |
||||||
|
if (pb::WireFormat.IsEndGroupTag(tag)) { |
||||||
|
if (unknownFields != null) { |
||||||
|
this.UnknownFields = unknownFields.Build(); |
||||||
|
} |
||||||
|
return this; |
||||||
|
} |
||||||
|
if (unknownFields == null) { |
||||||
|
unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
||||||
|
} |
||||||
|
ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
||||||
|
break; |
||||||
|
} |
||||||
|
case 8: { |
||||||
|
result.hasD = input.ReadInt32(ref result.d_); |
||||||
|
break; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
if (unknownFields != null) { |
||||||
|
this.UnknownFields = unknownFields.Build(); |
||||||
|
} |
||||||
|
return this; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
public bool HasD { |
||||||
|
get { return result.hasD; } |
||||||
|
} |
||||||
|
public int D { |
||||||
|
get { return result.D; } |
||||||
|
set { SetD(value); } |
||||||
|
} |
||||||
|
public Builder SetD(int value) { |
||||||
|
PrepareBuilder(); |
||||||
|
result.hasD = true; |
||||||
|
result.d_ = value; |
||||||
|
return this; |
||||||
|
} |
||||||
|
public Builder ClearD() { |
||||||
|
PrepareBuilder(); |
||||||
|
result.hasD = false; |
||||||
|
result.d_ = 0; |
||||||
|
return this; |
||||||
|
} |
||||||
|
} |
||||||
|
static ImportMessage() { |
||||||
|
object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestImportProtoFile.Descriptor, null); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
#endregion |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
#endregion Designer generated code |
File diff suppressed because it is too large
Load Diff
@ -1,4 +0,0 @@ |
|||||||
<?xml version="1.0"?> |
|
||||||
<configuration> |
|
||||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup> |
|
||||||
</configuration> |
|
@ -1,5 +0,0 @@ |
|||||||
<?xml version="1.0"?> |
|
||||||
|
|
||||||
<configuration> |
|
||||||
<startup /> |
|
||||||
</configuration> |
|
@ -1,5 +0,0 @@ |
|||||||
<?xml version="1.0"?> |
|
||||||
|
|
||||||
<configuration> |
|
||||||
<startup /> |
|
||||||
</configuration> |
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue