This plugin ensure that the appropriate Microsoft Visual C++ Runtime libraries are present in the build output directory of the project. It is important that VC++ applications have access to a version of the runtime libraries that is at least as new as the version that the project was linked against, otherwise you may experience crashes or other odd behaviours.
This plugin does not include the MSVC runtime libraries themselves, it only copies them from the build environment to the build output directory to make distributing builds with the right libraries simpler. Users should colsult Microsofts' documentation to ensure they are allowed to distribute these files.
- Add this plugin as a dependency in your
pubspec.yaml
:
dependencies:
msvcredist:
git:
url: https://github.com/insertjokehere/flutter_msvcredist.git
ref: main
- Compile your application as normal, and distribute the resulting files according to preference.