适用于Windows 7的VS2017目标平台中的MFC应用程序 [英] MFC application in VS2017 target platform for Windows 7

查看:379
本文介绍了适用于Windows 7的VS2017目标平台中的MFC应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Windows 8.1。使用VC ++和VS2017,我创建了一个MFC应用程序,其目标平台为Windows 10,其SDK版本为10.0.14393.0。我可以直接改变后者的属性而不是前者。如果我更改为SDK版本
8.1,目标平台只会说Windows。


但我需要该应用程序也可以在Windows 7下运行。没有SDK版本可以说除了上面提到的两个。我想如果我安装适用于Windows 7的Windows SDK,那么该SDK版本将显示为潜在的"Windows SDK
版本"。我可以选择的财产。这是正确的吗?


所以我下载适用于Windows 7的Windows SDK,然后去安装它。当我这样做时,我收到一条消息,告诉我安装了.Net framework 4的预发布版本,我应该安装.Net framework 4的官方版本,但它可以通过SDK安装继续
无论如何,它不会安装一些需要.Net framework 4的组件。但是这个消息是无稽之谈,因为当我查看注册表时它告诉我我已经安装了Net framework 4.7。我该怎么办 ?我不想通过安装这个较旧的Windows SDK来破坏我的.Net框架安装
,我确实想安装这个Windows SDK,因此我可以定位Windows 7.





解决方案

对于桌面应用程序,平台更多地是关于SDK本身。很容易理解为什么你会感到困惑。


Windows 10 SDK完全能够为Windows 7创建桌面应用程序。由于

Windows 10 SDK
页面状态:


支持的操作系统




  • Windows  10 App Development(UWP)



    • Windows  10版本1507或更高版本:Home,Professional,Education和Enterprise(不支持LTSB和S)
    • Windows Server 2012 R2(命令仅适用于Windows Server 2016(仅限命令行)


  • Win32开发



    • Windows  10版本1507或更高版本
    • Windows Server 2016:标准版和数据中心
    • Windows  8.1
    • Windows Server 2012 R2
    • Windows  7 SP1

    (早期操作系统不支持所有工具)



I am running Windows 8.1. Using VC++ with VS2017, I create an MFC application whose target platform says Windows 10 and whose SDK version says 10.0.14393.0. I can change the latter property directly but not the former. If I change to SDK version 8.1 the target platform just says Windows.

However I need the application to also run under Windows 7. There is no SDK Version that says anything but the two mentioned above. I guess that if I install the Windows SDK for Windows 7, then that SDK Version will show up as a potential "Windows SDK Version" property that I can choose. Is this correct ?

So I download the Windows SDK for Windows 7, and go to install it. When I do I get a message telling me that a pre-release version of .Net framework 4 is installed, that I should install the official release of .Net framework 4, but that it can go ahead with the SDK installation anyway but it will not install some components that require .Net framework 4. But this message is nonsense since when I look in the registry it tells me that I have Net framework 4.7 installed. What do I do ? I do not want to mess up my .Net framework installation by installing this older Windows SDK, and I do want to install this Windows SDK so I can target Windows 7.

解决方案

For a desktop application the platform is more about the SDK itself. It is easy to see why you got confused though.

The Windows 10 SDK is perfectly capable of creating desktop applications for Windows 7. As the Windows 10 SDK page states:

Supported operating systems

  • Windows 10 App Development (UWP)

    • Windows 10 version 1507 or higher: Home, Professional, Education, and Enterprise (LTSB and S are not supported)
    • Windows Server 2012 R2 (Command line only) Windows Server 2016 (Command Line only)
  • Win32 Development

    • Windows 10 version 1507 or higher
    • Windows Server 2016: Standard and Datacenter
    • Windows 8.1
    • Windows Server 2012 R2
    • Windows 7 SP1

    (Not all tools are supported on earlier operating systems)


这篇关于适用于Windows 7的VS2017目标平台中的MFC应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆