Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1394
  • Last Modified:

Problems building x64 using msbuild


I want my build system to compile for both x86 and x64.  Right now x86 works just fine.  I setup a new Configuration for x64 as shown in the code window.  I confirmed that msbuild is calling that configuration.  Here's the command that's being called (notice /platform:x64).  Why is msbuild creating references to the 32-bit Framework (notice System.Core.dll, etc. aren't referenced from Framework64?)

C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /platform:x64 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:"c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:"c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /debug:pdbonly /filealign:512 /keyfile:..\..\Shared\MyCompanyKeyPair.snk /optimize- /out:obj\x64\Release\MyCompany.DesignConventions.dll /target:library /warnaserror+ ..\..\MyCompanyShared\SharedAssemblyFileVersion.cs ..\..\MyCompanyShared\SharedProperties.cs ExampleClass.cs Properties\AssemblyInfo.cs
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">

Open in new window

1 Solution
sfun28Author Commented:
actually..i just learned that AnyCPU compiles enable both 32-bit and 64-bit platforms, so i don't need an x64 specific build

Featured Post

Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now