Problems building x64 using msbuild

Posted on 2009-04-22
Last Modified: 2012-05-06

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

Question by:sfun28
    1 Comment
    LVL 1

    Accepted Solution

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
    As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now