In engineering packaging, it is sometimes a headache that the library files needed to run are not fully contained, especially when a series of external extensions are called. For these issues, we can borrow the packaging capabilities of Visual Studio to help us find the necessary library files for the software to run.
First, we create a New Installation Wizard project from the "File---new---project---Other project types---installation and deployment---Visual Studio Installer.
By default the next step, and then we select, in the right blank area, add the program to run the required environment files, here need to specifically add the program engineering files in the reference, including DLL references, as shown in
After the reference is added, the zone automatically parses and shows what library files the run depends on, and you can either press the "SHIFT+F6" key combination to build the installation package, or you can manually look for these runtimes.
Use Visual Studio to find the necessary runtime files for C # programs