我可以使用 Windows 10 开发 Windows 7 个桌面应用程序吗?

Can i develop Windows 7 desktop apps using Windows 10?

是否可以使用 运行 Windows 10 的机器为 Windows 7 开发桌面应用程序?我正在尝试使用 WPF 开发应用程序,并在我的设备上安装了 Visual Studio 2015。

我知道无法在 Windows 7 上开发 Windows 8/10 商店应用程序,但我不确定反过来是否可行?

是的,您没有理由不这样做。

您可以在 Windows 10 上开发向后兼容的 WPF 应用程序,只要您不 运行 使用 Windows 10 中引入的 API 的代码它 运行 在 Windows.

的另一个版本上

您可以检测 Windows 版本或更好地检测功能,以确保您的应用将使用正确的 API,具体取决于 OS 和 运行。

检查 System.Environment.OSVersion API 以检测 Windows 版本