From 70cf2511627197ed38393f077c98e0827d588507 Mon Sep 17 00:00:00 2001 From: csharptest Date: Mon, 15 Oct 2012 14:03:49 -0500 Subject: Normalizing base project configurations --- build/Build20.bat | 2 +- build/Common.targets | 28 ++++----- build/build.csproj | 54 +++++++--------- build/build35.bat | 2 +- build/build40.bat | 2 +- src/AddressBook/AddressBook.csproj | 67 ++++++-------------- src/ProtoBench/ProtoBench.csproj | 57 +++++------------ src/ProtoDump/ProtoDump.csproj | 67 ++++++-------------- src/ProtoGen.Test/ProtoGen.Test.csproj | 73 +++++----------------- src/ProtoGen/ProtoGen.csproj | 55 ++++------------ src/ProtoMunge/ProtoMunge.csproj | 67 ++++++-------------- .../ProtocolBuffers.Serialization.csproj | 6 +- .../ProtocolBuffersLite.Serialization.csproj | 6 +- .../ProtocolBuffers.Test.csproj | 6 +- src/ProtocolBuffers/ProtocolBuffers.csproj | 8 +-- src/ProtocolBuffers/ProtocolBuffersLite.csproj | 6 +- .../ProtocolBuffersLite.Test.csproj | 6 +- .../ProtocolBuffersLiteMixed.Test.csproj | 6 +- 18 files changed, 167 insertions(+), 351 deletions(-) diff --git a/build/Build20.bat b/build/Build20.bat index 8c58d2e4..55d66f55 100644 --- a/build/Build20.bat +++ b/build/Build20.bat @@ -5,4 +5,4 @@ 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" +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=NET20" diff --git a/build/Common.targets b/build/Common.targets index 168924bd..7682b19e 100644 --- a/build/Common.targets +++ b/build/Common.targets @@ -7,21 +7,19 @@ Targets For FullBuild *********************************************************************************************** --> - - - + + + - - - + + - - - + + @@ -29,7 +27,7 @@ Targets For FullBuild +Building $(BuildConfiguration) configuration for .NET Framework $(TargetVersion) $(Platform)" /> - 3.5 - 4.0 - v2.0 - v3.5 - v4.0 - $(ForcedFrameworkVersion) - - v2.0 - v3.0 - v4.0 + NET40 + v2.0 + v3.5 + v4.0 $(MSBuildProjectDirectory)\.. $(ProjectDirectory)\src @@ -24,9 +17,9 @@ $(ProjectDirectory)\protos $(ProjectDirectory)\build_temp\GeneratedSource - $(ProjectDirectory)\build_temp\$(BuildConfiguration)$(TargetVersion) + $(ProjectDirectory)\build_temp\$(BuildConfiguration)\$(TargetVersion) $(ProjectDirectory)\build_output - $(BuildOutputDirectory)\$(ForcedFrameworkVersion) + $(BuildOutputDirectory) /v2 /fast /formats $(BuildTempDirectory)\..\BenchmarkResults.txt @@ -35,14 +28,14 @@ $(BuildConfiguration) - $(SourceDirectory)\ProtocolBuffers.sln + $(SourceDirectory)\ProtocolBuffersLibrary.$(TargetVersion).sln $(LibDirectory)\protoc.exe $(BuildOutputDirectory)\ProtoGen\protogen.exe $(BuildTempDirectory)\ProtoBench.exe $(LibDirectory)\NUnit\tools\nunit-console.exe - $(LibDirectory)\NUnit-config\nunit-console.$(ForcedFrameworkVersion).config + $(LibDirectory)\NUnit-config\nunit-console.$(TargetFrameworkVersion).config $(LibDirectory)\StatLight\tools\StatLight.exe $(LibDirectory)\7-Zip 9.20\7za.exe @@ -168,23 +161,24 @@ $(SourceDirectory)\ProtocolBuffers.Test\TestProtos - - - - + + + + - - - + + + - - - - - - - - + + + + + + + + diff --git a/build/build35.bat b/build/build35.bat index 46a625d5..8c15d8bc 100644 --- a/build/build35.bat +++ b/build/build35.bat @@ -5,4 +5,4 @@ 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" +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=NET35" diff --git a/build/build40.bat b/build/build40.bat index 6cfe0484..89dafe5a 100644 --- a/build/build40.bat +++ b/build/build40.bat @@ -5,4 +5,4 @@ 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" +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=NET40" diff --git a/src/AddressBook/AddressBook.csproj b/src/AddressBook/AddressBook.csproj index 58bea6a0..5d27ee7d 100644 --- a/src/AddressBook/AddressBook.csproj +++ b/src/AddressBook/AddressBook.csproj @@ -1,6 +1,8 @@  + CLIENTPROFILE + NET35 Debug AnyCPU 9.0.30729 @@ -10,48 +12,34 @@ Properties Google.ProtocolBuffers.Examples.AddressBook AddressBook - v2.0 + v3.5 512 Google.ProtocolBuffers.Examples.AddressBook.Program - - - - - 3.5 - publish\ - true - Disk - false - Foreground - 7 - Days - false - false - true - 0 - 1.0.0.%2a - false - false - true true full false - bin\Debug\ + bin\NET35\Debug + obj\NET35\Debug\ DEBUG;TRACE prompt 4 - AllRules.ruleset + true + true + Off pdbonly true - bin\Release\ + bin\NET35\Release + obj\NET35\Release\ TRACE prompt 4 - AllRules.ruleset + true + true + Off @@ -76,29 +64,12 @@ - - - False - .NET Framework 3.5 SP1 Client Profile - false - - - False - .NET Framework 3.5 SP1 - true - - - False - Windows Installer 3.1 - true - - - \ No newline at end of file diff --git a/src/ProtoBench/ProtoBench.csproj b/src/ProtoBench/ProtoBench.csproj index d2c526dc..1fc395c5 100644 --- a/src/ProtoBench/ProtoBench.csproj +++ b/src/ProtoBench/ProtoBench.csproj @@ -1,6 +1,8 @@  + CLIENTPROFILE + NET35 Debug AnyCPU 9.0.30729 @@ -10,50 +12,36 @@ Properties Google.ProtocolBuffers.ProtoBench ProtoBench - v4.0 + v3.5 512 - - - - - 3.5 - publish\ - true - Disk - false - Foreground - 7 - Days - false - false - true - 0 - 1.0.0.%2a - false - false - true - true full false - bin\Debug\ + bin\NET35\Debug + obj\NET35\Debug\ DEBUG;TRACE prompt 4 - AllRules.ruleset + true + true + Off pdbonly true - bin\Release\ + bin\NET35\Release + obj\NET35\Release\ TRACE prompt 4 - AllRules.ruleset + true + true + Off + @@ -86,23 +74,6 @@ - - - False - .NET Framework 3.5 SP1 Client Profile - false - - - False - .NET Framework 3.5 SP1 - true - - - False - Windows Installer 3.1 - true - - \ No newline at end of file diff --git a/src/ProtoGen.Test/ProtoGen.Test.csproj b/src/ProtoGen.Test/ProtoGen.Test.csproj index a3883ccf..1d549045 100644 --- a/src/ProtoGen.Test/ProtoGen.Test.csproj +++ b/src/ProtoGen.Test/ProtoGen.Test.csproj @@ -1,6 +1,8 @@  + CLIENTPROFILE + NET35 Debug AnyCPU 9.0.30729 @@ -10,49 +12,33 @@ Properties Google.ProtocolBuffers.ProtoGen Google.ProtocolBuffers.ProtoGen.Test - v2.0 + v3.5 512 - true - ..\..\keys\Google.ProtocolBuffers.snk - - - - - 3.5 - publish\ - true - Disk - false - Foreground - 7 - Days - false - false - true - 0 - 1.0.0.%2a - false - false - true true full false - bin\Debug\ - DEBUG;TRACE + bin\NET35\Debug + obj\NET35\Debug\ + DEBUG;TRACE;$(EnvironmentFlavor);$(EnvironmentTemplate) prompt 4 - AllRules.ruleset + true + true + Off pdbonly true - bin\Release\ - TRACE + bin\NET35\Release + obj\NET35\Release\ + TRACE;$(EnvironmentFlavor);$(EnvironmentTemplate) prompt 4 - AllRules.ruleset + true + true + Off @@ -80,35 +66,6 @@ ProtoGen - - - False - .NET Framework 3.5 SP1 Client Profile - false - - - False - .NET Framework 3.5 SP1 - true - - - False - Windows Installer 3.1 - true - - - protoc.exe - Always - - - google\protobuf\csharp_options.proto - Always - - - google\protobuf\descriptor.proto - Always - - \ No newline at end of file diff --git a/src/ProtocolBuffers.Serialization/ProtocolBuffers.Serialization.csproj b/src/ProtocolBuffers.Serialization/ProtocolBuffers.Serialization.csproj index 97ae99f1..b9f728b8 100644 --- a/src/ProtocolBuffers.Serialization/ProtocolBuffers.Serialization.csproj +++ b/src/ProtocolBuffers.Serialization/ProtocolBuffers.Serialization.csproj @@ -22,7 +22,8 @@ true full false - bin\Debug\ + bin\NET35\Debug + obj\NET35\Debug\ $(OutputPath)\$(AssemblyName).xml 1591, 1570, 1571, 1572, 1573, 1574 DEBUG;TRACE;$(EnvironmentFlavor);$(EnvironmentTemplate) @@ -34,7 +35,8 @@ pdbonly true - bin\Release\ + bin\NET35\Release + obj\NET35\Release\ $(OutputPath)\$(AssemblyName).xml 1591, 1570, 1571, 1572, 1573, 1574 TRACE;$(EnvironmentFlavor);$(EnvironmentTemplate) diff --git a/src/ProtocolBuffers.Serialization/ProtocolBuffersLite.Serialization.csproj b/src/ProtocolBuffers.Serialization/ProtocolBuffersLite.Serialization.csproj index b0a80559..c1754cf2 100644 --- a/src/ProtocolBuffers.Serialization/ProtocolBuffersLite.Serialization.csproj +++ b/src/ProtocolBuffers.Serialization/ProtocolBuffersLite.Serialization.csproj @@ -22,7 +22,8 @@ true full false - bin\Debug\ + bin\NET35\Debug + obj\NET35\Debug\ $(OutputPath)\$(AssemblyName).xml 1591, 1570, 1571, 1572, 1573, 1574 DEBUG;TRACE;LITE;$(EnvironmentFlavor);$(EnvironmentTemplate) @@ -34,7 +35,8 @@ pdbonly true - bin\Release\ + bin\NET35\Release + obj\NET35\Release\ $(OutputPath)\$(AssemblyName).xml 1591, 1570, 1571, 1572, 1573, 1574 TRACE;LITE;$(EnvironmentFlavor);$(EnvironmentTemplate) diff --git a/src/ProtocolBuffers.Test/ProtocolBuffers.Test.csproj b/src/ProtocolBuffers.Test/ProtocolBuffers.Test.csproj index ee22134f..c75be051 100644 --- a/src/ProtocolBuffers.Test/ProtocolBuffers.Test.csproj +++ b/src/ProtocolBuffers.Test/ProtocolBuffers.Test.csproj @@ -22,7 +22,8 @@ true full false - bin\Debug\ + bin\NET35\Debug + obj\NET35\Debug\ DEBUG;TRACE;$(EnvironmentFlavor);$(EnvironmentTemplate) prompt 4 @@ -33,7 +34,8 @@ pdbonly true - bin\Release\ + bin\NET35\Release + obj\NET35\Release\ TRACE;$(EnvironmentFlavor);$(EnvironmentTemplate) prompt 4 diff --git a/src/ProtocolBuffers/ProtocolBuffers.csproj b/src/ProtocolBuffers/ProtocolBuffers.csproj index 620fe4a5..fe1f04ac 100644 --- a/src/ProtocolBuffers/ProtocolBuffers.csproj +++ b/src/ProtocolBuffers/ProtocolBuffers.csproj @@ -22,26 +22,26 @@ true full false - bin\Debug\ + bin\NET35\Debug + obj\NET35\Debug\ $(OutputPath)\$(AssemblyName).xml 1591, 1570, 1571, 1572, 1573, 1574 DEBUG;TRACE;$(EnvironmentFlavor);$(EnvironmentTemplate) prompt 4 - true true Off pdbonly true - bin\Release\ + bin\NET35\Release + obj\NET35\Release\ $(OutputPath)\$(AssemblyName).xml 1591, 1570, 1571, 1572, 1573, 1574 TRACE;$(EnvironmentFlavor);$(EnvironmentTemplate) prompt 4 - true true Off diff --git a/src/ProtocolBuffers/ProtocolBuffersLite.csproj b/src/ProtocolBuffers/ProtocolBuffersLite.csproj index a8a5e829..4037c2bf 100644 --- a/src/ProtocolBuffers/ProtocolBuffersLite.csproj +++ b/src/ProtocolBuffers/ProtocolBuffersLite.csproj @@ -22,7 +22,8 @@ true full false - bin\Debug\ + bin\NET35\Debug + obj\NET35\Debug\ $(OutputPath)\$(AssemblyName).xml 1591, 1570, 1571, 1572, 1573, 1574 DEBUG;TRACE;LITE;$(EnvironmentFlavor);$(EnvironmentTemplate) @@ -34,7 +35,8 @@ pdbonly true - bin\Release\ + bin\NET35\Release + obj\NET35\Release\ $(OutputPath)\$(AssemblyName).xml 1591, 1570, 1571, 1572, 1573, 1574 TRACE;LITE;$(EnvironmentFlavor);$(EnvironmentTemplate) diff --git a/src/ProtocolBuffersLite.Test/ProtocolBuffersLite.Test.csproj b/src/ProtocolBuffersLite.Test/ProtocolBuffersLite.Test.csproj index 353e5cdb..7cf48eec 100644 --- a/src/ProtocolBuffersLite.Test/ProtocolBuffersLite.Test.csproj +++ b/src/ProtocolBuffersLite.Test/ProtocolBuffersLite.Test.csproj @@ -22,7 +22,8 @@ true full false - bin\Debug\ + bin\NET35\Debug + obj\NET35\Debug\ DEBUG;TRACE;$(EnvironmentFlavor);$(EnvironmentTemplate) prompt 4 @@ -33,7 +34,8 @@ pdbonly true - bin\Release\ + bin\NET35\Release + obj\NET35\Release\ TRACE;$(EnvironmentFlavor);$(EnvironmentTemplate) prompt 4 diff --git a/src/ProtocolBuffersLite.Test/ProtocolBuffersLiteMixed.Test.csproj b/src/ProtocolBuffersLite.Test/ProtocolBuffersLiteMixed.Test.csproj index f793593b..970e8b95 100644 --- a/src/ProtocolBuffersLite.Test/ProtocolBuffersLiteMixed.Test.csproj +++ b/src/ProtocolBuffersLite.Test/ProtocolBuffersLiteMixed.Test.csproj @@ -22,7 +22,8 @@ true full false - bin\Debug\ + bin\NET35\Debug + obj\NET35\Debug\ DEBUG;TRACE;$(EnvironmentFlavor);$(EnvironmentTemplate) prompt 4 @@ -33,7 +34,8 @@ pdbonly true - bin\Release\ + bin\NET35\Release + obj\NET35\Release\ TRACE;$(EnvironmentFlavor);$(EnvironmentTemplate) prompt 4 -- cgit v1.2.3