为什么有人应该使用 .NET Framework 4 Client Profile?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7983655/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why should someone use the .NET Framework 4 Client Profile?
提问by
Are there any good reasons to use .NET Framework 4 Client Profileinstead of the full version?
是否有充分的理由使用 .NET Framework 4 Client Profile而不是完整版?
I mean, real-life reasons. I am creating a .NET application, and since it's quite easy to create an installer that will install the .NET framework on a client machine, why bother using the Client Profile?
我的意思是,现实生活中的原因。我正在创建一个 .NET 应用程序,因为创建一个安装程序来在客户端机器上安装 .NET 框架非常容易,为什么还要使用客户端配置文件呢?
采纳答案by David
The documentationanswers this:
该文件回答了这个:
The .NET Framework 4 Client Profile is a subset of the .NET Framework 4 that is optimized for client applications. It provides functionality for most client applications, including Windows Presentation Foundation (WPF), Windows Forms, Windows Communication Foundation (WCF), and ClickOnce features. This enables faster deployment and a smaller install package for applications that target the .NET Framework 4 Client Profile.
.NET Framework 4 Client Profile 是 .NET Framework 4 的一个子集,它针对客户端应用程序进行了优化。它为大多数客户端应用程序提供功能,包括 Windows Presentation Foundation (WPF)、Windows Forms、Windows Communication Foundation (WCF) 和 ClickOnce 功能。这为面向 .NET Framework 4 Client Profile 的应用程序提供了更快的部署和更小的安装包。
A smaller install package could be a bonus, especially if you're targeting non-traditional devices like tablets with less storage space. It's also a shorter download time if the Framework needs to be installed.
较小的安装包可能是一个好处,特别是如果您针对的是非传统设备,例如存储空间较小的平板电脑。如果需要安装框架,下载时间也会更短。
回答by Wouter de Kort
Applications that target the .NET Framework 4 Client Profile typically improve the deployment experience by having smaller download sizes and quicker install times. An application that targets the .NET Framework 4 Client Profile has a smaller redistribution package that installs the minimum set of client assemblies on the user's computer, without requiring the full version of the .NET Framework 4 to be present.
面向 .NET Framework 4 Client Profile 的应用程序通常会通过更小的下载大小和更快的安装时间来改善部署体验。面向 .NET Framework 4 客户端配置文件的应用程序具有较小的重新分发包,可在用户计算机上安装最少的客户端程序集集,而无需存在 .NET Framework 4 的完整版本。
回答by hspain
A good answer can be found in Stack Overflow question Differences between Microsoft .NET 4.0 full Framework and Client Profile. Basically, only use the full framework if you know you need to. Normal client applications should only need the client framework.
可以在 Stack Overflow 问题差异 Microsoft .NET 4.0 full Framework and Client Profile 中找到一个很好的答案。基本上,只有在您知道需要时才使用完整的框架。普通客户端应用程序应该只需要客户端框架。
回答by Paolo Falabella
Some reasons:
一些原因:
- The client profile has been available as a recommended update on Windows Update since Vista (ref: http://support.microsoft.com/kb/982670), so chances are you don't need to install it at all on your target machines
- being a separate profile it will be updated separately (so clients will not need to update as much, if a security patch for a server-only feature is released)
- 自 Vista 以来,客户端配置文件已作为 Windows Update 上的推荐更新提供(参考:http: //support.microsoft.com/kb/982670),因此您可能根本不需要在目标计算机上安装它
- 作为一个单独的配置文件,它将单独更新(因此,如果发布了仅限服务器功能的安全补丁,客户端将不需要更新太多)

