问题
I want to deploy a C++/CLI application on Windows 7 32bit clients. I have built it using Visual Studio 2017 and I noticed my project needs Visual C++ 2017 Redistributable.
My executable file is less than 1 megabytes and the MSVCR dependency is 13 megabytes, which is really huge for this app.
Is there any way I can reduce this amount of size?
回答1:
I found a possible solution but I don't know if it is fine or not.
I can compile my C++/CLI code with Visual Studio 2010 toolkit. So I would need C++ Redistributable 2010 for it.
And instead of installing the whole package I can copy msvcr80.dll and msvcp80.dll next to my executable file, which are less than 1 megabyte size together.
来源:https://stackoverflow.com/questions/45108166/how-to-avoid-visual-c-redistributable-large-file-installing