Windows SDK 是否限制符合条件的 Windows 版本? [英] Does Windows SDK restrict eligible versions of Windows?

查看:45
本文介绍了Windows SDK 是否限制符合条件的 Windows 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在迁移到 Visual Studio 2017,而 VS2017 提示我们重新定位项目的目标有两个:Windows SDK 版本和平台工具集.

We're moving to Visual Studio 2017 and VS2017 prompts us to retarget the projects for 2 things: Windows SDK Version and Platform Toolset.

目前我们的应用程序可以在较旧的 Windows 版本上运行(至少到 Server 2003,可能更旧),我们需要保留相同的版本(我知道它们不再受支持,但这是客户的要求).

Currently our application can run on older Windows versions (at least to Server 2003, possibly older), and we need to retain the same (I know they're not supported anymore, but that's the customer's requirement).

假设我们的代码(全是 C++,以防万一)不使用任何仅在较新版本的 Windows 上可用的 API,将重新定位到较新版本的 Windows SDK 限制或限制我们的应用将在哪些版本的 Windows 上运行?

Assuming that our code (which is all C++ in case it makes a difference) does not use any APIs which are only available on newer versions of Windows, will re-targeting to a newer version of the Windows SDK restrict or limit the versions of Windows that our app will run on?

在这个主题上,重新定位到较新版本的 Windows SDK 有什么优点或缺点(例如性能)(同样,假设我们不使用任何仅在较新的 Windows)?

And while on the subject, will re-targeting to a newer version of the Windows SDK have any pros or cons (ex. performance) (again, assuming we don't use any of the new APIs that are only available on newer Windows)?

推荐答案

否,使用较新的 SDK 允许使用较新的功能,但不需要这样做.只要您小心地只使用您对您的程序感兴趣的 Windows 版本上存在的功能,您的程序就会继续工作.但是,您可能需要在客户端系统上安装 vs2017 运行时.

No, using a newer SDK allows use of newer funcntionality but it does not require doing so. So long as you are careful to only use functionality that is present on the version of windows you are interested in your program will continue to work. You will, however, likely need to install the vs2017 runtime on the client systems.

这篇关于Windows SDK 是否限制符合条件的 Windows 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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