Download and install Visual Studio Community 2019 , during install choose following components: Desktop development with C++ (left side) and C++/CLI support for v142 build tools (right side).
Download and install git , default setup parameters are fine.
- mkdir build && cd build
- cmake .. -G "Visual Studio 16 2019" -A x64 -DXMRIG_DEPS=D:\Workspace\xmrig\libs\msvc2019\x64
- cmake --build . --config Release