.NET Framework 4 桌面应用程序 [C#] 运行 Windows 8、8.1 和 10

Will .NET Framework 4 desktop application [C#] run Windows 8, 8.1 and 10

我是 .NET 的新手,对 .NET 的了解有限。目前在 visual studio 2010 年学习和使用 C#。 我在 Windows 7 X64.

中使用 .NET 4 和 C# 构建了一个小型桌面应用程序

所以现在我有疑问,我的申请 运行 会在 windows 8、8.1 和 10 上吗?

谢谢。

您的应用程序将 运行 在任何支持您选择的 .NET 版本的操作系统上运行。

Windows 8、8.1 和 Windows 10 具有支持 .Net framework 4.0 应用程序的 .Net 版本。例如 Windows 8.0,默认安装 .Net Framework 4.5。 .Net 框架支持 backward compatibility 所以任何 在 4.5 或更早版本中开发的应用程序将在 Windows 8 上运行。

参见:What version of the .NET Framework is included in what version of the OS?

Windows 8 (all editions) includes the .NET Framework 4.5 as an OS component, and it is installed by default.

Windows 10 (all editions) includes the .NET Framework 4.6 as an OS component, and it is installed by default.

基本上您的应用程序将 运行 在任何操作系统上。关键是要检查您尝试 运行 应用程序的机器是否安装了 .Net Framework 版本。