-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Related to #1407: I'm trying to create an instruction manual for creating native image command line applications using the picocli library.
On Windows 10, the generated native image cannot be executed on a clean machine; it fails with an error like the following:
Note that this problem does not manifest on the machine where the native image was built. The DLL will be present on machines that have the toolchain set up to build the native image (Microsoft Windows SDK for Windows 7 and .NET Framework 4 and the C compilers from KB2519277). The problem only manifests when you try to execute the generated native image on a "clean" Windows 10 machine. (I used a VirtualBox VM with a 64-bit Windows 10 guest OS to reproduce the issue.)
It turns out that msvcr100.dll from VS C++ Redistributable 2010 must be present or the application will fail to start. I would like to include msvcr100.dll in the native image so my application can be distributed as a single executable.
Will this DLL be included automatically in the native image in future releases? If not, is there a way for me ensure it is included?