Client Profile vs Full [duplicate]

我的梦境 提交于 2019-12-18 10:39:24

问题


Possible Duplicate:
Difference between .NET 4 Client Profile and Full Framework download

I noticed that you can change the target platform in .NET applications to the Client Profile or the Full profile. What is the difference between the two? How should I choose which is the correct one for my project?


回答1:


There is very little point in targeting the client profile for .NET 4.0. The download is 41MB, the full version is 48MB, only 15% bigger.

The client profile does make a lot of sense if you target 3.5, the full installer is ~350 MB. The huge difference is explained by the prerequisites, .NET 4.0 requires at least XP SP3 or Vista SP1, 3.5 installs on any version of Windows > 2000. The 3.5 installer thus contains lots of the required updates for unmanaged Windows components used by .NET. The web installer lessens that blow considerably btw.

The client profile is painful in .NET 4.0 because VS2010 made it the default .NET framework target. And deals quite poorly with a solution that has projects that have a mix of full and client profile targets, produces very mystifying build errors on code that IntelliSense doesn't complain about. They didn't make the same mistake again in VS2012, nor does .NET 4.5 have a Client profile. Good riddance.




回答2:


Summarized from MSDN:

When targeting the .NET Framework 4 Client Profile, you cannot reference an assembly that is not in the .NET Framework 4 Client Profile. Instead you must target the .NET Framework 4.

The .NET Framework 4 Client Profile does not include the following features. You must install the .NET Framework 4 to use these features in your application:

  • .NET Framework Data Provider for Oracle
  • ASP.NET
  • Advanced Windows Communication Foundation (WCF) functionality
  • MSBuild for compiling

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.




回答3:


The Client Profile only installs a subset of .NET that is relevant to desktop applications. This means that in some cases, you have to use the Full profile to get some features. The Client Profile is a lot smaller of course, and I would recommend it for small desktop applications.




回答4:


While the difference in size is essentially negligible with modern networks, there is one major difference. Windows Update (and Windows 7 & 8 I believe) will only install the client framework on an end users machine. So the chances of the end user having the client framework already installed is much higher than the full framework.



来源:https://stackoverflow.com/questions/3562076/client-profile-vs-full

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!