diff --git a/build/BuildBenchmark.ps1 b/build/BuildBenchmark.ps1
deleted file mode 100644
index c301a1ca32..0000000000
--- a/build/BuildBenchmark.ps1
+++ /dev/null
@@ -1,13 +0,0 @@
-write-host `nRunning build. Please wait...
-
-$iterations = 10
-
-for ($i=1; $i -le $iterations; $i++)
-{
- $sw = [System.Diagnostics.StopWatch]::StartNew()
- & E:\dotnet-protobufs\build\BuildAll.bat
- $sw.Stop()
- $msbuildTotalRunTime += $sw.ElapsedMilliseconds
-}
-
-write-host `nMSBuild average speed over $iterations iterations: ($msbuildTotalRunTime/$iterations) milliseconds
\ No newline at end of file
diff --git a/build/BuildSilverlight2.bat b/build/BuildSilverlight2.bat
index f875cf2e1b..bc1dd21e97 100644
--- a/build/BuildSilverlight2.bat
+++ b/build/BuildSilverlight2.bat
@@ -1,5 +1,5 @@
@echo off
-%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build /p:BuildConfiguration=Debug_Silverlight2
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build /p:BuildConfiguration=Debug_Silverlight2 /p:Platform="Any CPU"
pause
\ No newline at end of file
diff --git a/build/Common.targets b/build/Common.targets
index e26bc07a2c..a66bcf06f1 100644
--- a/build/Common.targets
+++ b/build/Common.targets
@@ -29,19 +29,24 @@
-
+
+
+
+
+
+
+
+
+
-
-
-
diff --git a/build/GenerateCompletePackage.bat b/build/GenerateCompletePackage.bat
index 63a0d29e93..959dc788b5 100644
--- a/build/GenerateCompletePackage.bat
+++ b/build/GenerateCompletePackage.bat
@@ -1,4 +1,7 @@
@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:Build;PreparePackageComponent /p:BuildConfiguration=Debug /p:Platform="Any CPU"
IF ERRORLEVEL 1 GOTO END
diff --git a/build/GenerateReleasePackage.bat b/build/GenerateReleasePackage.bat
index 30e05bad83..70111b74c1 100644
--- a/build/GenerateReleasePackage.bat
+++ b/build/GenerateReleasePackage.bat
@@ -1,4 +1,7 @@
@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:Build;PreparePackageComponent /p:BuildConfiguration=Release /p:Platform="Any CPU"
IF ERRORLEVEL 1 GOTO END
diff --git a/build/RunBenchmarks.bat b/build/RunBenchmarks.bat
index 5ac235bfcc..944e15aba9 100644
--- a/build/RunBenchmarks.bat
+++ b/build/RunBenchmarks.bat
@@ -1,5 +1,5 @@
@echo off
-%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:RunBenchmarks /p:BuildConfiguration=Release
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:RunBenchmarks /p:BuildConfiguration=Release /p:Platform="Any CPU"
pause
\ No newline at end of file
diff --git a/build/build.csproj b/build/build.csproj
index 50e2207a31..7bc65894f2 100644
--- a/build/build.csproj
+++ b/build/build.csproj
@@ -95,6 +95,7 @@
+
diff --git a/src/AddressBook/AddressBook.csproj b/src/AddressBook/AddressBook.csproj
index 96fc33652c..6024b807f7 100644
--- a/src/AddressBook/AddressBook.csproj
+++ b/src/AddressBook/AddressBook.csproj
@@ -53,27 +53,6 @@
4
AllRules.ruleset
-
- true
- full
- false
- bin\Debug_Silverlight2\
- DEBUG;TRACE;SILVERLIGHT2
- prompt
- 4
- true
- AllRules.ruleset
-
-
- pdbonly
- true
- bin\Release_Silverlight2\
- TRACE;SILVERLIGHT2
- prompt
- 4
- true
- AllRules.ruleset
-
diff --git a/src/ProtoBench/ProtoBench.csproj b/src/ProtoBench/ProtoBench.csproj
index b79b145fba..927a255702 100644
--- a/src/ProtoBench/ProtoBench.csproj
+++ b/src/ProtoBench/ProtoBench.csproj
@@ -53,27 +53,6 @@
4
AllRules.ruleset
-
- true
- full
- false
- bin\Debug_Silverlight2\
- DEBUG;TRACE;SILVERLIGHT2
- prompt
- 4
- true
- AllRules.ruleset
-
-
- pdbonly
- true
- bin\Release_Silverlight2\
- TRACE;SILVERLIGHT2
- prompt
- 4
- true
- AllRules.ruleset
-
diff --git a/src/ProtoDump/ProtoDump.csproj b/src/ProtoDump/ProtoDump.csproj
index 964498cba4..9e14573683 100644
--- a/src/ProtoDump/ProtoDump.csproj
+++ b/src/ProtoDump/ProtoDump.csproj
@@ -52,27 +52,6 @@
4
AllRules.ruleset
-
- true
- full
- false
- bin\Debug_Silverlight2\
- DEBUG;TRACE;SILVERLIGHT2
- prompt
- 4
- true
- AllRules.ruleset
-
-
- pdbonly
- true
- bin\Release_Silverlight2\
- TRACE;SILVERLIGHT2
- prompt
- 4
- true
- AllRules.ruleset
-
diff --git a/src/ProtoGen.Test/ProtoGen.Test.csproj b/src/ProtoGen.Test/ProtoGen.Test.csproj
index d032b3e7fc..d37ded5d17 100644
--- a/src/ProtoGen.Test/ProtoGen.Test.csproj
+++ b/src/ProtoGen.Test/ProtoGen.Test.csproj
@@ -54,27 +54,6 @@
4
AllRules.ruleset
-
- true
- full
- false
- bin\Debug_Silverlight2\
- DEBUG;TRACE;SILVERLIGHT2
- prompt
- 4
- true
- AllRules.ruleset
-
-
- pdbonly
- true
- bin\Release_Silverlight2\
- TRACE;SILVERLIGHT2
- prompt
- 4
- true
- AllRules.ruleset
-
False
diff --git a/src/ProtoGen/ProtoGen.csproj b/src/ProtoGen/ProtoGen.csproj
index 6ddefa8ef9..e771d05581 100644
--- a/src/ProtoGen/ProtoGen.csproj
+++ b/src/ProtoGen/ProtoGen.csproj
@@ -55,27 +55,6 @@
4
AllRules.ruleset
-
- true
- full
- false
- bin\Debug_Silverlight2\
- DEBUG;TRACE;SILVERLIGHT2
- prompt
- 4
- true
- AllRules.ruleset
-
-
- pdbonly
- true
- bin\Release_Silverlight2\
- TRACE;SILVERLIGHT2
- prompt
- 4
- true
- AllRules.ruleset
-
diff --git a/src/ProtoMunge/ProtoMunge.csproj b/src/ProtoMunge/ProtoMunge.csproj
index 082a74672b..a04276cc99 100644
--- a/src/ProtoMunge/ProtoMunge.csproj
+++ b/src/ProtoMunge/ProtoMunge.csproj
@@ -52,27 +52,6 @@
4
AllRules.ruleset
-
- true
- full
- false
- bin\Debug_Silverlight2\
- DEBUG;TRACE;SILVERLIGHT2
- prompt
- 4
- true
- AllRules.ruleset
-
-
- pdbonly
- true
- bin\Release_Silverlight2\
- TRACE;SILVERLIGHT2
- prompt
- 4
- true
- AllRules.ruleset
-
diff --git a/src/ProtocolBuffers.Test/ProtocolBuffers.Test.csproj b/src/ProtocolBuffers.Test/ProtocolBuffers.Test.csproj
index b795df09cf..bdfebfa9a3 100644
--- a/src/ProtocolBuffers.Test/ProtocolBuffers.Test.csproj
+++ b/src/ProtocolBuffers.Test/ProtocolBuffers.Test.csproj
@@ -54,27 +54,6 @@
4
AllRules.ruleset
-
- true
- full
- false
- bin\Debug_Silverlight2\
- DEBUG;TRACE;SILVERLIGHT2
- prompt
- 4
- true
- AllRules.ruleset
-
-
- pdbonly
- true
- bin\Release_Silverlight2\
- TRACE;SILVERLIGHT2
- prompt
- 4
- true
- AllRules.ruleset
-
False
@@ -150,7 +129,8 @@
true
-
+
+