Build 4.23 from source error

I’ve been trying to build engine version 4.23 from source by calling Rebuild.bat with the following command:

Rebuild.bat -Target=“UE4Editor Win64 Development” -Target=“ShaderCompileWorker Win64 Development” -WaitMutex -FromMsBuild"

I get the error below that I don’t understand how to fix. Can someone explain to me what’s going wrong?

Building 2 actions with 16 processes…
[1/2] UE4Editor-SwarmInterface.dll
Creating library C:\Source\UE4_23\unrealengine\Engine\Intermediate\Build\Win64\UE4Editor\Development\SwarmInterface\UE4Editor-SwarmInterface.suppressed.lib and object C:\Source\UE4_23\unrealengine\Engine\Intermediate\Build\Win64\UE4Editor\Development\SwarmInterface\UE4Editor-SwarmInterface.suppressed.exp
Module.SwarmInterface.cpp.obj : error LNK2019: unresolved external symbol CLRCreateInstance referenced in function “public: static bool __cdecl NSwarm::FSwarmInterfaceImpl::InitSwarmInterfaceManaged(wchar_t const *)” (?InitSwarmInterfaceManaged@FSwarmInterfaceImpl@NSwarm@@SA_NPEB_W@Z)
C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x86\mscoree.lib : warning LNK4272: library machine type ‘x86’ conflicts with target machine type ‘x64’
C:\Source\UE4_23\unrealengine\Engine\Binaries\Win64\UE4Editor-SwarmInterface.dll : fatal error LNK1120: 1 unresolved externals

You are trying to compile x86 code for a machine that’s target is clearly 64 bit.

Is your operating system 32-bit or 64-bit?

Everything is supposed to be x64 (operating system, project etc.) but something in the unreal engine project might link an x84 file. I’m not sure how and where that happens or what to do about it.

I solved the problem by installing .net version 4.6.1. on top of all the other .net versions I already had installed.