Building tests on Windows

Has anybody tried to create a Visual Studio solution for building and running stan tests?
How to do you build tests on Windows?

Yes, but it only occasionally worked

mingw from RTools

Does it compile fine for you in x64?


I tried to build stan-math tests using vc141. Some test compiled successfully, however the majority failed. It looks like most errors come from Eigen. I tried to use v141_clang_c2 toolchain, which helped to compile more tests, but still not all of them. Has anybody dealt with this? I mean building stan-math tests using visual studio toolchain.