.net - Microsoft .NET 4.0 完整框架和客户端配置文件之间的差异

标签 .net .net-4.0 .net-client-profile

Microsoft .NET Framework 4.0 完整安装程序(32 位和 64 位)为 48.1 MB,客户端配置文件安装程序为 41.0 MB。提取的安装文件分别为 237 MB 和 194 MB,安装后分别为 537 MB 和 427 MB。

相差 110 MB。这两个包有什么区别?

什么时候最好安装客户端配置文件而不是完整的 .NET Framework?

最佳答案

What's new in .NET Framework 4 Client Profile RTM解释了许多差异:

When to use NET4 Client Profile and when to use NET4 Full Framework?
NET4 Client Profile:
Always target NET4 Client Profile for all your client desktop applications (including Windows Forms and WPF apps).

NET4 Full framework:
Target NET4 Full only if the features or assemblies that your app need are not included in the Client Profile. This includes:

  • If you are building Server apps. Such as:
    o ASP.Net apps
    o Server-side ASMX based web services
  • If you use legacy client scenarios. Such as:
    o Use System.Data.OracleClient.dll which is deprecated in NET4 and not included in the Client Profile.
    o Use legacy Windows Workflow Foundation 3.0 or 3.5 (WF3.0 , WF3.5)
  • If you targeting developer scenarios and need tool such as MSBuild or need access to design assemblies such as System.Design.dll

但是,as stated on MSDN ,这与 >=4.5 无关:

Starting with the .NET Framework 4.5, the Client Profile has been discontinued and only the full redistributable package is available. Optimizations provided by the .NET Framework 4.5, such as smaller download size and faster deployment, have eliminated the need for a separate deployment package. The single redistributable streamlines the installation process and simplifies your app's deployment options.

关于.net - Microsoft .NET 4.0 完整框架和客户端配置文件之间的差异,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2759228/

相关文章:

android - 为什么我应该将可移植类库与 Xamarin 一起使用?

c# - 使用 Func<Inner,Outer,bool> 的 Linq GroupJoin?

c# - C#如何进行动态绑定(bind)?

visual-studio-2010 - “.NET Framework 3.5 SP1 客户端配置文件”先决条件

x64 上的 .NET 客户端配置文件

.NET CryptoStream 在 Dispose() 中读取密文的结尾并爆炸

c# - 为两个订单 ID 的排列创建唯一哈希码

c# - 将位图转换为图标

c# - T4 - 字段初始值设定项不能引用非静态字段、方法或属性

.net - 什么是Visual Studio 2008中的 "Client-only Framework subset"?