Visual studio 2015 run-time dependencies or how to get rid of Universal CRT?

No, you can’t get rid of them, but I was able to statically-link to them by setting the
C/C++ > Code Generation > Runtime Library compiler option

  • For Debug: from /MDd to /MTd
  • For Release: from /MD to /MT

This removed all the API-MS-WIN-CRT-* and runtime dll references and caused all the CRT code to be statically linked.

Details on the new VS2015 Universal CRT (dynamic and static) are here:
https://msdn.microsoft.com/en-us/library/abx4dbyh.aspx

Note that the only other option is to compile with an older-compiler (like virus developers),
not newer, because Microsoft promises same UCRT-requirements for any newer compiler-version as well.

Leave a Comment