Closed PhilPJL closed 2 years ago
Hi @PhilPJL,
I know this is a bit annoying but I find it cleaner to require the user to install the required C runtime as described here (https://github.com/HDFGroup/HDF.PInvoke.1.10#prerequisites) since this is official way to get that .dll.
Additionally, I do not know how VCRUNTIME140.dll is licensed and if we would be allowed to provide a copy of it.
https://docs.microsoft.com/en-us/cpp/windows/redistributing-visual-cpp-files?view=msvc-170#install-the-redistributable-packages also mentions the advantage of installing the redistributable package:
The Visual C++ Redistributable Packages install and register all Visual C++ libraries. If you use one, run it as a prerequisite on the target system before you install your application. We recommend that you use these packages for your deployments because they enable automatic updating of the Visual C++ libraries.
ok thanks for the info.
After installing our application on a fresh install of Windows 10 it appears there's a dependency on vcruntime140.dll when using HDF.PInvoke.1.10 (1.10.612). This can be verified by using a dependency checker such as this https://github.com/lucasg/Dependencies. This is showing the dll installed in system32 on my dev box. The dll isn't there by default.
This is easily remedied but maybe vcruntime140.dll should be included in the package?