积极答复者
如何打包解决vcruntime140文件找不到的错误?

问题
答案
-
>>是不是因为我装的vs2015是x86版本的,所有有这个错误?
这个和vs的版本没什么关系,我在我的测试机上测试,设置过/MT属性后,打包到没有安装vs的机器上,可以正常运行。
我建议你检查一下下面的几个问题。
1. 检查一下你设置的属性页是否是正确的配置。对应release/x64版本。
2. 检查你打包的文件是否是对应文件夹中的文件。
如果都没有问题,建议你共享一个可以复现的测试工程,方便我们查找具体原因。
Best Regards,
Baron Bi
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已标记为答案 BillQu0002 2018年5月8日 5:10
全部回复
-
Hi,
感谢在MSDN论坛发帖。
>>我的开发机装的是vs2015,打包安装没问题。但是同样的安装包,装到别的没有vs2015环境的电脑上,运行不了,提示找不到vcruntime140文件。请问这个问题怎么解决?
请按照VisualEleven的建议, 将你的项目属性->C/C++->Code Generation->Runtime Library,设置为/MT。这样就会使应用程序使用运行时库的多线程静态版本。
希望对你有所帮助。
Best Regards,
Baron Bi
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com. -
Hi,
感谢在MSDN论坛发帖。
>>我的开发机装的是vs2015,打包安装没问题。但是同样的安装包,装到别的没有vs2015环境的电脑上,运行不了,提示找不到vcruntime140文件。请问这个问题怎么解决?
请按照VisualEleven的建议, 将你的项目属性->C/C++->Code Generation->Runtime Library,设置为/MT。这样就会使应用程序使用运行时库的多线程静态版本。
希望对你有所帮助。
Best Regards,
Baron Bi
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com. -
Hi,
感谢在MSDN论坛发帖。
>>我的开发机装的是vs2015,打包安装没问题。但是同样的安装包,装到别的没有vs2015环境的电脑上,运行不了,提示找不到vcruntime140文件。请问这个问题怎么解决?
请按照VisualEleven的建议, 将你的项目属性->C/C++->Code Generation->Runtime Library,设置为/MT。这样就会使应用程序使用运行时库的多线程静态版本。
希望对你有所帮助。
Best Regards,
Baron Bi
MSDN Community Support
我已经这样做了,在别的机器上还是报没有vcruntime140文件。
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
-
>>是不是因为我装的vs2015是x86版本的,所有有这个错误?
这个和vs的版本没什么关系,我在我的测试机上测试,设置过/MT属性后,打包到没有安装vs的机器上,可以正常运行。
我建议你检查一下下面的几个问题。
1. 检查一下你设置的属性页是否是正确的配置。对应release/x64版本。
2. 检查你打包的文件是否是对应文件夹中的文件。
如果都没有问题,建议你共享一个可以复现的测试工程,方便我们查找具体原因。
Best Regards,
Baron Bi
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已标记为答案 BillQu0002 2018年5月8日 5:10
-
>>是不是因为我装的vs2015是x86版本的,所有有这个错误?
这个和vs的版本没什么关系,我在我的测试机上测试,设置过/MT属性后,打包到没有安装vs的机器上,可以正常运行。
我建议你检查一下下面的几个问题。
1. 检查一下你设置的属性页是否是正确的配置。对应release/x64版本。
2. 检查你打包的文件是否是对应文件夹中的文件。
如果都没有问题,建议你共享一个可以复现的测试工程,方便我们查找具体原因。
Best Regards,
Baron Bi
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com. -
>>是不是因为我装的vs2015是x86版本的,所有有这个错误?
这个和vs的版本没什么关系,我在我的测试机上测试,设置过/MT属性后,打包到没有安装vs的机器上,可以正常运行。
我建议你检查一下下面的几个问题。
1. 检查一下你设置的属性页是否是正确的配置。对应release/x64版本。
2. 检查你打包的文件是否是对应文件夹中的文件。
如果都没有问题,建议你共享一个可以复现的测试工程,方便我们查找具体原因。
Best Regards,
Baron Bi
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.