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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3579951/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 14:39:24  来源:igfitidea点击:

.NET Framework 4.0 Client Profile vs .NET Framework 4.0

.netvisual-studioframeworks

提问by Kiran Bheemarti

When I started new .NET Console Application in VS2010, By default Target Framework was set to .NET Framework 4.0 Client Profile, what is the difference between .NET Framework 4.0 and .NET Framework 4.0 Client Profile

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

采纳答案by Malartre

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. It provides functionality for most client applications, including Windows Presentation Foundation (WPF), Windows Forms, Windows Communication Foundation (WCF), and ClickOnce features.

它是什么:.NET Framework 4 Client Profile 是 .NET Framework 4 的一个子集,它针对客户端应用程序进行了优化。它为大多数客户端应用程序提供功能,包括 Windows Presentation Foundation (WPF)、Windows Forms、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:
http://msdn.microsoft.com/en-us/library/cc656912.aspx

.NET Framework 客户端配置文件:http :
//msdn.microsoft.com/en-us/library/cc656912.aspx

回答by JaredPar

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.Webavailable 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 体验限制为完成应用程序所需的体验。

回答by Bright Chen

Come from Microsoft MSDN

来自微软 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. The following is a list of the project templates in Visual Studio 2010 that target the .NET Framework 4 Client Profile by default. All other projects target the .NET Framework 4 by default.

Visual Studio 2010 中的几个项目模板面向 .NET Framework 4 Client Profile。以下是 Visual Studio 2010 中默认面向 .NET Framework 4 Client Profile 的项目模板列表。默认情况下,所有其他项目都以 .NET Framework 4 为目标。

Windows

视窗

  • WPF Application

  • WPF Browser Application

  • WPF Custom Control Library

  • WPF User Control Library

  • Windows Forms Application

  • Windows Forms Control Library

  • Console Application

  • Empty Project

  • Window Service

  • WPF 应用程序

  • WPF 浏览器应用程序

  • WPF 自定义控件库

  • WPF 用户控件库

  • Windows 窗体应用程序

  • Windows 窗体控件库

  • 控制台应用程序

  • 空项目

  • 窗口服务

Office

办公室

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

WCF

周转基金

  • WCF Service Library
  • WCF 服务库

Workflow

工作流程

  • Activity Designer Library

  • Activity Library

  • Workflow Console Application

  • 活动设计器库

  • 活动库

  • 工作流控制台应用程序

Visual F#

视觉 F#

  • F# Application

  • F# Tutorial

  • F# 应用程序

  • F# 教程

回答by NET Lover

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. You must install the .NET Framework 4 to use these features in your application:

.NET Framework 4 Client Profile 不包括以下功能。您必须安装 .NET Framework 4 才能在您的应用程序中使用这些功能:

  • ASP.NET

  • Advanced Windows Communication Foundation (WCF) functionality

  • .NET Framework Data Provider for Oracle

  • MSBuild for compiling

  • ASP.NET

  • 高级 Windows Communication Foundation (WCF) 功能

  • 用于 Oracle 的 .NET Framework 数据提供程序

  • 用于编译的 MSBuild