Xenko project compilation failed

Prompt Windows Desktop project compilation failure when compiling xenko.sln project: fatal error lnk1112: module machine type ‘x86’ conflicts with target machine type ‘x64’

To Reproduce
Steps to reproduce the behavior:

  1. New installation of windows 10 (ver: 10.0.18363) system
    2· Clone the latest code of the master branch
  2. New installation of Visual Studio Enterprise 2019 (ver: 16.4.5)
  3. Visual Studio 2019 with the following workloads:
    .NET desktop development with .NET Framework 4.7.2 targeting pack
    Desktop development with C++ with
    Windows 10 SDK (10.0.17763.0)
    MSVC v142 - VS2019 C++ x64/x86 build tools (v14.23)
    MSVC v142 - VS2019 C++ x64/x86 Spectre-mitigated libs (v14.23)
    .NET Core cross-platform development
    Universal Windows Platform development
    MSVC v142 - VS2019 C++ ARM build tools (v14.23)
    MSVC v142 - VS2019 C++ ARM Spectre-mitigated libs (v14.23)
    FBX SDK 2019.0 VS2015
    5· Open <XenkoDir>\build\Xenko.sln with Visual Studio 2019, and build.

Did I do something wrong?

Hi, do you perhaps have a 32-bit windows?

Hi, I’m using 64 bit windows. I cloned the code of 3.1 branch and it can be compiled normally, but the latest master branch is not. The above error appears

Oh, yes I think you should use the normal master branch, if it doesn’t compile, you could try to go a few commits back.

I think it’s my environment. After I cloned the latest code of the main branch, I built it successfully for the first time, and then it didn’t work. But I can’t build windows and vs2019 successfully after reinstallation

The problem has been solved. Although I don’t know the specific reason, when I reinstall vs2019 according to the official specified workload for the third time, I can buy the machine again and love you successfully!!!