I have an app that was built on windows server 2019, using Visual Studio 2019. It fails to run on windows server 2016.
Is there a way to get this app to run on windows server 2016?
I have an app that was built on windows server 2019, using Visual Studio 2019. It fails to run on windows server 2016.
Is there a way to get this app to run on windows server 2016?
Copyright © 2021 Jogjafile Inc.
The app in question was not bundling all of the MSVC redistributable files. CMake InstallRequiredSystemLibraries is used for bundling native libraries with the app, but the default behavior of that cmake function does not include the universal CRT libraries. I simply had to add
set(CMAKE_INSTALL_UCRT_LIBRARIES true)beforeinclude(InstallRequiredSystemLibraries)in the cmake configuration file (CMakeLists.txt).An alternative solution is to manually install the latest MSVC redistributable package on the 2016 server.