瀏覽代碼

Fixed build to work with VS2010

Jon Skeet 15 年之前
父節點
當前提交
8631daa883
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      ProtocolBuffers.build

+ 6 - 0
ProtocolBuffers.build

@@ -185,6 +185,7 @@
     <msbuild project="${src}/ProtocolBuffers.sln">
     <msbuild project="${src}/ProtocolBuffers.sln">
       <property name="Configuration"
       <property name="Configuration"
                 value="${build-configuration}" />
                 value="${build-configuration}" />
+      <property name="Platform" value="Any CPU" />
     </msbuild>
     </msbuild>
   </target>
   </target>
   
   
@@ -259,15 +260,20 @@
           description="Builds all versions of the main library">
           description="Builds all versions of the main library">
     <msbuild project="${src}/ProtocolBuffers.sln">
     <msbuild project="${src}/ProtocolBuffers.sln">
       <property name="Configuration" value="Debug" />
       <property name="Configuration" value="Debug" />
+      <property name="Platform" value="Any CPU" />
     </msbuild>
     </msbuild>
     <msbuild project="${src}/ProtocolBuffers.sln">
     <msbuild project="${src}/ProtocolBuffers.sln">
       <property name="Configuration" value="Release" />
       <property name="Configuration" value="Release" />
+      <property name="Platform" value="Any CPU" />
     </msbuild>
     </msbuild>
     <msbuild project="${src}/ProtocolBuffers.sln">
     <msbuild project="${src}/ProtocolBuffers.sln">
       <property name="Configuration" value="Silverlight2" />
       <property name="Configuration" value="Silverlight2" />
+      <property name="Platform" value="Any CPU" />
     </msbuild>
     </msbuild>
+    <!-- Note the deliberate lack of space in the platform name -->
     <msbuild project="${src}/ProtocolBuffers/ProtocolBuffersCF.csproj">
     <msbuild project="${src}/ProtocolBuffers/ProtocolBuffersCF.csproj">
       <property name="Configuration" value="Release" />
       <property name="Configuration" value="Release" />
+      <property name="Platform" value="AnyCPU" />
     </msbuild>
     </msbuild>
   </target>
   </target>