How to: Revert to the 32-bit Toolset

By default, the 64-bit version of the bintools (compiler, linker, lib) are used when building Xbox One C++ projects in Visual Studio. If necessary, projects can be configured to to use the 32-bit toolset.

To revert to the 32-bit toolset, 4 properties need to be set in the project’s .vcxproj file.

To revert a project to the 32-bit toolset

  1. Set the _IsNativeEnvironment property to false by creating a new property group in the project’s .vcxproj file. This property group must be set after the line that imports Microsoft.Cpp.Default.props ( <Import Project=”$(VCTargetsPath)\Microsoft.Cpp.Default.props” /> ).
    <PropertyGroup>
      <_IsNativeEnvironment>false</_IsNativeEnvironment>
    </PropertyGroup>  
    
  2. Set the properties that point to the compiler, linker, and lib by creating another new property group in the project’s .vcxproj file. This property group must be set after the line that imports Microsoft.Cpp.props ( <Import Project=”$(VCTargetsPath)\Microsoft.Cpp.props” /> ).
    <PropertyGroup>
        <CLToolExe>$(DurangoKitPath)vc\bin\x86_amd64\cl.exe</CLToolExe>
        <LinkToolExe>$(DurangoKitPath)vc\bin\x86_amd64\link.exe</LinkToolExe>
        <LibToolExe>$(DurangoKitPath)vc\bin\x86_amd64\lib.exe</LibToolExe>
    </PropertyGroup>