【问题标题】:Why an application working in Windows7(.net 3.5)is not working in Win8(.net4.5)为什么在 Windows 7(.net 3.5) 中运行的应用程序在 Win8(.net4.5) 中无法运行
【发布时间】:2013-04-03 05:19:41
【问题描述】:

我有一个 TargetFrameworkVersion=v3.5 的应用程序

 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>

应用程序在 Windows 7 中运行良好,但在 Windows 8 中我需要安装 .net framework 3.5 使用应用程序。为什么我应该安装 .net 框架 3.5,即使 Win8 有默认的 .net 框架 4.5。我应该怎么做才能在 Win7 和 Win8 中使用该应用程序?

【问题讨论】:

标签: c# .net windows windows-8


【解决方案1】:

.NET 3.5 默认不安装在 Windows 8 上,只有 .NET 4.5。

.NET 4.0/4.5 和 .NET 2.0/3.0/3.5 是并行安装。因此,基于 .NET 3.5 构建的应用程序将无法在 4.0 或 4.5 上运行。见this MSDN article for more information.

this MSDN article about installing .NET 3.5 on Windows 8.

【讨论】:

  • 有什么方法可以更新我的应用程序,在 Win7 中使用 3.5,在 Win8 中使用 4.5
  • 不,您必须拥有应用程序的 2 个独立版本。一种针对 .NET 3.5 编译,另一种针对 .NET 4.5 编译。如果可能的话,我会在 Windows 8 上安装 .NET 3.5。
  • 如何通过更新当前的 .net 3.5 应用程序在 .net 4.5 中创建新版本。我应该更改哪些属性
【解决方案2】:

请参阅this page,了解每个版本的 Windows 上预装了哪些 .NET 版本的摘要。

很遗憾,Windows 7 和 Windows 8 都没有预装通用版本。Windows 7 附带 3.5.1(包括 2.0、3.0、3.5),Windows 8 附带 4.5。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-07-23
    • 2016-03-14
    • 1970-01-01
    • 2012-10-08
    • 2013-01-14
    • 2016-10-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多