简体   繁体   English

.NET Framework 4.0客户端配置文件与.NET Framework 4.0

[英].NET Framework 4.0 Client Profile vs .NET Framework 4.0

当我在VS2010中启动新的.NET控制台应用程序时,默认情况下Target Framework设置为.NET Framework 4.0 Client Profile,.NET Framework 4.0和.NET Framework 4.0 Client Profile之间的区别是什么

Straight from the Microsoft castle: 直接来自微软城堡:

What is it: The .NET Framework 4 Client Profile is a subset of the .NET Framework 4 that is optimized for client applications. 它是什么: .NET Framework 4 Client Profile是.NET Framework 4的一个子集,它针对客户端应用程序进行了优化。 It provides functionality for most client applications, including Windows Presentation Foundation (WPF), Windows Forms, Windows Communication Foundation (WCF), and ClickOnce features. 它为大多数客户端应用程序提供功能,包括Windows Presentation Foundation(WPF),Windows窗体,Windows Communication Foundation(WCF)和ClickOnce功能。

Why: 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 Client Profile: .NET Framework客户端配置文件:
http://msdn.microsoft.com/en-us/library/cc656912.aspx http://msdn.microsoft.com/en-us/library/cc656912.aspx

The client profile attempts to restrict the set of referenced assemblies to those that are only interesting to a client application. 客户端配置文件尝试将引用的程序集集限制为仅对客户端应用程序感兴趣的程序集。 For example it won't make System.Web available by default because it is not typically valuable to client apps. 例如,默认情况下它不会使System.Web可用,因为它通常对客户端应用程序没有价值。

The intent is to constrain the Visual Studio experience to that which is necessary to complete your application. 目的是将Visual Studio体验限制为完成应用程序所必需的体验。

Come from Microsoft MSDN 来自Microsoft MSDN


Project Templates that Target the .NET Framework Client Profile 定位.NET Framework客户端配置文件的项目模板

Several project templates in Visual Studio 2010 target the .NET Framework 4 Client Profile. Visual Studio 2010中的多个项目模板以.NET Framework 4 Client Profile为目标。 The following is a list of the project templates in Visual Studio 2010 that target the .NET Framework 4 Client Profile by default. 以下是Visual Studio 2010中默认情况下以.NET Framework 4 Client Profile为目标的项目模板列表。 All other projects target the .NET Framework 4 by default. 默认情况下,所有其他项目都以.NET Framework 4为目标。

Windows 视窗

  • WPF Application WPF应用程序

  • WPF Browser Application WPF浏览器应用程序

  • WPF Custom Control Library WPF自定义控件库

  • WPF User Control Library WPF用户控件库

  • Windows Forms Application Windows窗体应用程序

  • Windows Forms Control Library Windows窗体控件库

  • Console Application 控制台应用

  • Empty Project 空项目

  • Window Service 窗口服务

Office 办公室

  • All Office 2007 and Office 2010 所有Office 2007和Office 2010
  • project templates 项目模板

WCF WCF

  • WCF Service Library WCF服务库

Workflow 工作流程

  • Activity Designer Library 活动设计师库

  • Activity Library 活动图书馆

  • Workflow Console Application 工作流控制台应用程序

Visual F# 视觉F#

  • F# Application F#应用程序

  • F# Tutorial F#教程

Kindly note the features not in the .NET Framework Client Profile. 请注意.NET Framework Client Profile中没有的功能。

The .NET Framework 4 Client Profile does not include the following features. .NET Framework 4客户端配置文件不包括以下功能。 You must install the .NET Framework 4 to use these features in your application: 您必须安装.NET Framework 4才能在应用程序中使用这些功能:

  • ASP.NET ASP.NET

  • Advanced Windows Communication Foundation (WCF) functionality 高级Windows Communication Foundation(WCF)功能

  • .NET Framework Data Provider for Oracle 适用于Oracle的.NET Framework数据提供程序

  • MSBuild for compiling MSBuild用于编译

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

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