Win10 或 Win7 运行 exe 文件报错:
System.IO.FileNotFoundException: Could not load file or assembly ‘xxx.dll’ or one of its dependencies
原因:系统环境问题,缺了运行库
需要安装 Visual Studio 2017 redistribution package
解决:
下载安装 VC_redist.x64.exe :
https://download.visualstudio.microsoft.com/download/pr/89a3b9df-4a09-492e-8474-8f92c115c51d/B1A32C71A6B7D5978904FB223763263EA5A7EB23B2C44A0D60E90D234AD99178/VC_redist.x64.exe
如果机器是32位的话,试试 VC_redist.x86.exe
其他:
The download link is as follows:
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
If the error happens again after installing it, please install a redistributable package of VS2013 from the following link.
https://www.microsoft.com/en-us/download/details.aspx?id=40784