Our large codebase has been updated so that it compiles with both the VS2017/v141 toolset (which we've been building with for several years) and the VS2019/v142 toolset (which we are migrating to). I'm using msbuild at the command line, so I can target either toolset with the exact same source - all source inputs are identical in both cases. Building is either done on my personal Win10 workstation, or one one of our Win7 TeamCity build servers. The result is the same.
The resulting build when targeting v142 produces artifacts that do not run on any of our Windows7 64-bit machines (which we sadly still have many of), failing with error 0xc000007b. Specifically, one of our dlls, which is comes from a CLR enabled C++/CLI project fails to load. Running depends.exe (and the newer open source Dependencies tool) doesn't show anything interesting or suspcious - the artifacts from both builds produce identical reports. When profiling in depends.exe, we see that any exe using the dll from v142 stops immediately after loading it.
Likewise, running procmon shows nothing helpful - identical traces, that obviosuly diverge at some point, but with no hint or clue of any error or problem in the trace from the v142 binary.
The correct vc redistributables are of course installed on the Win7 machines.
All builds work fine on our Win10 machines.
I saw this quesiton, but the given answer does not apply in our case.
I've spent several days trying to get to the bottom of this and have failed. Anyone out there with any similar experiences?