问题描述
如何将目标平台更改为 Windows 7?我只能选择 Windows 8.1,因此我的项目不能在 Windows 7 上运行.我曾经在使用 Visual Studio 2013 的旧 Windows 7 PC 上编译的同一个项目.当然它在那里工作.
How can I change the target platform to Windows 7? All I can chose is Windows 8.1 and therefore my project does not run on Windows 7. The same project I used to compile on my old Windows 7 PC with Visual Studio 2013. And of course it worked there.
我已经尝试安装 Windows 7 SDK,但遗憾的是这不起作用,因为它需要 Net Framework 4.0,我无法再安装.(Windows 10 包括 4.6?) - https://msdn.microsoft.com/en-我们/en-en/library/ff770576.aspx
I already tried to install Windows 7 SDK but sadly this does not work since it requites Net Framework 4.0 which I can not install anymore. (Windows 10 includes 4.6?) - https://msdn.microsoft.com/en-us/en-en/library/ff770576.aspx
谢谢.
推荐答案
来自 MSDN:
目标平台版本
[...]
要面向 Windows 7 或 Windows Vista,请使用值 8.1,因为 Windows SDK 8.1 向后兼容这些平台.此外,您应该在 targetver.h 中为 _WIN32_WINNT 定义适当的值.对于 Windows 7,这是 0x0601.请参阅修改 WINVER 和 _WIN32_WINNT.
To target Windows 7 or Windows Vista, use the value 8.1, since Windows SDK 8.1 is backward compatible to those platforms. In addition, you should define the appropriate value for _WIN32_WINNT in targetver.h. For Windows 7, that's 0x0601. See Modifying WINVER and _WIN32_WINNT.
这篇关于Visual Studio 2015 将目标平台更改为 windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)