简体   繁体   English

为什么在Windows7(.net 3.5)中运行的应用程序无法在Win8(.net4.5)中运行

[英]Why an application working in Windows7(.net 3.5)is not working in Win8(.net4.5)

i have an application with TargetFrameworkVersion=v3.5 我有一个TargetFrameworkVersion = v3.5的应用程序

 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>

Application is working fine in windows 7 but in windows 8 i need to install .net framework 3.5 to use the application.Why i should install .net framework 3.5 even when Win8 have a default .net framework 4.5.What should i do to use the application in both Win7 and in Win8? 应用程序在Windows 7中工作正常但在Windows 8中我需要安装.net framework 3.5才能使用该应用程序。为什么我应该安装.net framework 3.5即使Win8有一个默认的.net框架4.5。我该怎么办才能使用应用于Win7和Win8?

.NET 3.5 is not installed on Windows 8 by default, only .NET 4.5. 默认情况下,Windows 8未安装在.NET 8上,只有.NET 4.5。

.NET 4.0/4.5 and .NET 2.0/3.0/3.5 are side-by-side installations. .NET 4.0 / 4.5和.NET 2.0 / 3.0 / 3.5是并行安装。 As such, applications built on .NET 3.5 will not run on 4.0 or 4.5. 因此,在.NET 3.5上构建的应用程序将无法在4.0或4.5上运行。 See this MSDN article for more information. 有关更多信息,请参阅此MSDN文章。

See this MSDN article about installing .NET 3.5 on Windows 8. 请参阅此MSDN文章,了解如何在Windows 8上安装.NET 3.5。

See this page for a summary of which versions of .NET are preinstalled on each version of Windows. 有关每个Windows版本上预安装的.NET版本的摘要,请参阅此页面

Unfortunately, there is no common version preinstalled on both Windows 7 and Windows 8. Windows 7 comes with 3.5.1 (includes 2.0, 3.0, 3.5) and Windows 8 comes with 4.5. 不幸的是,Windows 7和Windows 8上都没有预装通用版本.Windows 7附带3.5.1(包括2.0,3.0,3.5),Windows 8附带4.5。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM