From 30d3fa320573ae7be306b97cccb52c1d281d3d03 Mon Sep 17 00:00:00 2001 From: csharptest Date: Wed, 15 Dec 2010 13:26:33 -0600 Subject: [PATCH] Converted build to also work under .net 3.5 --- build/Common.targets | 23 ++++++++++------------- build/build.csproj | 9 +++++---- build/build35.bat | 6 ++++++ 3 files changed, 21 insertions(+), 17 deletions(-) create mode 100644 build/build35.bat diff --git a/build/Common.targets b/build/Common.targets index a66bcf06f..b6bac8880 100644 --- a/build/Common.targets +++ b/build/Common.targets @@ -7,17 +7,18 @@ - - - + + + + + + + + + - - @(Protos) - $(ProtosList.Replace(`;`,` `)) - - - + @@ -25,10 +26,6 @@ - - - - diff --git a/build/build.csproj b/build/build.csproj index c3b0ed270..22084bd00 100644 --- a/build/build.csproj +++ b/build/build.csproj @@ -6,7 +6,7 @@ - $(MSBuildProjectDirectory)\.. + $(MSBuildProjectDirectory)\.. $(ProjectDirectory)\src $(ProjectDirectory)\lib $(ProjectDirectory)\protos @@ -15,9 +15,10 @@ $(ProjectDirectory)\build_output\$(BuildConfiguration) - $(SourceDirectory)\ProtocolBuffers.sln - - + $(SourceDirectory)\ProtocolBuffers.sln + $(SourceDirectory)\ProtocolBuffers2008.sln + + $(LibDirectory)\protoc.exe $(SourceDirectory)\ProtoGen\bin\$(BuildConfiguration)\protogen.exe $(BuildTempDirectory)\ProtoBench.exe diff --git a/build/build35.bat b/build/build35.bat new file mode 100644 index 000000000..052b782b6 --- /dev/null +++ b/build/build35.bat @@ -0,0 +1,6 @@ +@echo off +SET START_DIR=%CD% +CD %~dp0 +%WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe build.csproj /t:Build /p:BuildConfiguration=Debug /p:Platform="Any CPU" /p:TargetFramework="v2.0" /p:BuildTools="v3.5" /toolsversion:3.5 +CD %START_DIR% +SET START_DIR=