几年前一篇关于 .net framework client profile http://www.cnblogs.com/zzj8704/archive/2010/05/19/1739130.html , 现在有更多了:

原文:http://blog.stephencleary.com/2012/05/framework-profiles-in-net.html

为提高访问速度,copy了如下:

There are a lot of different .NET runtimes. There's the desktop framework, Windows Phone, Silverlight, and Windows Store. There's also a number of lesser-known frameworks. You can download targeting packs to target different frameworks.

Every once in a while (usually while working with NuGet), I find myself needing a refresher on the frameworks and profiles. It's a pain to look all this up again, so I'm collecting it here for future reference.

FrameworkName and Version

A target framework is indicated by a FrameworkName, which has three components: a required framework Identifier, a required framework Version, and an optional framework Profile.

Both Identifier and Profile are always case-insensitive. The FrameworkName constructor allows some flexibility when it parses strings (and NuGet allows even more flexibility), but the canonical structure is as such: Identifier ",Version=v"Version [ ",Profile=" Profile ].

Note that the Version applies to the Identifier; there is no version on a Profile.

Getting the FrameworkName

You can type the following into the Package Manager Console window to view the target framework for any project:

$p = Get-Project "MyProjectName"
$p.Properties.Item("TargetFrameworkMoniker").Value

Known Framework Identifiers and Profiles

.NETFramework

The .NETFramework identifier is used for the regular desktop framework. For example, ".NETFramework,Version=v3.5" refers to .NET 3.5. You can also target specific updates, e.g., ".NETFramework,Version=v4.0.2" refers to .NET 4.0 Platform Update 2.

If there is no profile specified, the framework refers to the full profile.

Client specifies the client profile; e.g., ".NETFramework,Version=v4.0,Profile=Client" refers to the .NET 4.0 Client Profile. Note that the client profile is not supported in .NET 4.5.

Historical note: The CompactFramework profile specifies the .NET Compact Framework. This probably should have been its own identifier, but doesn't really matter anymore since Visual Studio 2008 was the last version to support CF directly.

Silverlight

The Silverlight identifier is used for the Silverlight framework. For example, "Silverlight,Version=v4.0" refers to Silverlight 4.

If there is no profile specified, the framework refers to the desktop Silverlight framework.

WindowsPhone specifies the original Windows Phone profile; e.g., "Silverlight,Version=v3.0,Profile=WindowsPhone" refers to Windows Phone 7.0. I believe this profile is only applicable to Silverlight version 3.0.

WindowsPhone71 specifies the newer Windows Phone profile; e.g., "Silverlight,Version=v4.0,Profile=WindowsPhone71" refers to Windows Phone 7.5 (Mango). That's not a typo: "7.5" came from marketing; the internal version numbers are all "7.1". However, some (all?) Microsoft tools will treat WindowsPhone75 just like WindowsPhone71, so you may be able to get away with that. I believe this profile is only applicable to Silverlight version 4.0.

The "Windows Phone" profiles of Silverlight are a historical oddity; starting with Windows Phone 8, Microsoft correctly gave Windows Phone its own identifier (see below).

.NETCore

The .NETCore identifier is used for the new .NET framework for Windows Store applications. For example, ".NETCore,Version=v4.5" refers to the original Windows Store framework. Note that the first version of this framework will be 4.5. Also, remember that Windows Store is different than the desktop .NET 4.5 ".NETFramework,Version=v4.5", which was released at the same time.

WindowsPhone

The WindowsPhone identifier is used for newer Windows Phone projects. For example, "WindowsPhone,Version=v8.0" refers to Windows Phone 8. Earlier versions of Windows Phone used special profiles of the Silverlight identifier.

There are no known profiles for the WindowsPhone identifier.

.NETPortable

The .NETPortable identifier is used for portable libraries. Each portable library may run on a number of different platforms, indicated by a profile named ProfileN. For example, ".NETPortable,Version=v4.0,Profile=Profile1" refers to a portable library that can run on .NET 4.0, Silverlight 4, Windows Phone 7, Metro, or XBox 360.

The "Version" for the .NETPortable identifier looks like it refers to the maximum version supported by all the platforms in that profile.

The .NETPortable identifier requires a profile. The profiles are listed below (as of the Windows Phone 8 SDK update to Visual Studio 2012):

Version Profile Display Name Frameworks
4.0 Profile1 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4, Silverlight 4, Windows Phone 7, Xbox 360) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
Silverlight,Version=v4.0,Profile=WindowsPhone* (Windows Phone)
Xbox,Version=v4.0,Profile=* (Xbox 360)
4.0 Profile2 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4, Silverlight 4, Windows Phone 7) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
Silverlight,Version=v4.0,Profile=WindowsPhone* (Windows Phone)
4.0 Profile3 .NET Portable Subset (.NET Framework 4, Silverlight 4) .NETFramework,Version=v4.0,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
4.0 Profile4 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.5, Silverlight 4, Windows Phone 7) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.5,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
Silverlight,Version=v4.0,Profile=WindowsPhone* (Windows Phone)
4.0 Profile5 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0,Profile=* (.NET Framework)
4.0 Profile6 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.0.3) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0.3,Profile=* (.NET Framework)
4.0 Profile14 .NET Portable Subset (.NET Framework 4, Silverlight 5) .NETFramework,Version=v4.0,Profile=* (.NET Framework)
Silverlight,Version=v5.0 (Silverlight)
4.0 Profile18 .NET Portable Subset (.NET Framework 4.0.3, Silverlight 4) .NETFramework,Version=v4.0.3,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
4.0 Profile19 .NET Portable Subset (.NET Framework 4.0.3, Silverlight 5) .NETFramework,Version=v4.0.3,Profile=* (.NET Framework)
Silverlight,Version=v5.0 (Silverlight)
4.0 Profile23 .NET Portable Subset (.NET Framework 4.5, Silverlight 4) .NETFramework,Version=v4.5,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
4.0 Profile24 .NET Portable Subset (.NET Framework 4.5, Silverlight 5) .NETFramework,Version=v4.5,Profile=* (.NET Framework)
Silverlight,Version=v5.0 (Silverlight)
4.0 Profile36 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4, Silverlight 4) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
4.0 Profile37 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4, Silverlight 5) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0,Profile=* (.NET Framework)
Silverlight,Version=v5.0 (Silverlight)
4.0 Profile41 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.0.3, Silverlight 4) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0.3,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
4.0 Profile42 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.0.3, Silverlight 5) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0.3,Profile=* (.NET Framework)
Silverlight,Version=v5.0 (Silverlight)
4.0 Profile46 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.5, Silverlight 4) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.5,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
4.0 Profile47 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.5, Silverlight 5) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.5,Profile=* (.NET Framework)
Silverlight,Version=v5.0 (Silverlight)
4.0 Profile88 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4, Silverlight 4, Windows Phone 7.5) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
Silverlight,Version=v4.0,Profile=WindowsPhone7* (Windows Phone)
4.0 Profile95 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.0.3, Silverlight 4, Windows Phone 7) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0.3,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
Silverlight,Version=v4.0,Profile=WindowsPhone* (Windows Phone)
4.0 Profile96 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.0.3, Silverlight 4, Windows Phone 7.5) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0.3,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
Silverlight,Version=v4.0,Profile=WindowsPhone7* (Windows Phone)
4.0 Profile104 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.5, Silverlight 4, Windows Phone 7.5) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.5,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
Silverlight,Version=v4.0,Profile=WindowsPhone7* (Windows Phone)
4.0 Profile131 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.0.3, Silverlight 4, Windows Phone 7, Xbox 360) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0.3,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
Silverlight,Version=v4.0,Profile=WindowsPhone* (Windows Phone)
Xbox,Version=v4.0,Profile=* (Xbox 360)
4.0 Profile136 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4, Silverlight 5, Windows Phone 8) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0,Profile=* (.NET Framework)
Silverlight,Version=v5.0 (Silverlight)
WindowsPhone,Version=v8.0 (Windows Phone)
4.0 Profile143 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.0.3, Silverlight 4, Windows Phone 8) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0.3,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
WindowsPhone,Version=v8.0 (Windows Phone)
4.0 Profile147 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.0.3, Silverlight 5, Windows Phone 8) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.0.3,Profile=* (.NET Framework)
Silverlight,Version=v5.0 (Silverlight)
WindowsPhone,Version=v8.0 (Windows Phone)
4.0 Profile154 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.5, Silverlight 4, Windows Phone 8) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.5,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
WindowsPhone,Version=v8.0 (Windows Phone)
4.0 Profile158 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.5, Silverlight 5, Windows Phone 8) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.5,Profile=* (.NET Framework)
Silverlight,Version=v5.0 (Silverlight)
WindowsPhone,Version=v8.0 (Windows Phone)
4.5 Profile7 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.5) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.5,Profile=* (.NET Framework)
4.5 Profile49 .NET Portable Subset (.NET Framework 4.5, Windows Phone 8) .NETFramework,Version=v4.5,Profile=* (.NET Framework)
WindowsPhone,Version=v8.0 (Windows Phone)
4.5 Profile78 .NET Portable Subset (.NET for Windows Store apps, .NET Framework 4.5, Windows Phone 8) .NETCore,Version=v4.5,Profile=* (.NET for Windows Store apps)
.NETFramework,Version=v4.5,Profile=* (.NET Framework)
WindowsPhone,Version=v8.0 (Windows Phone)
Xbox and .NETMicroFramework

The Xbox identifier is used for XBox 360 projects. For example, "Xbox,Version=v4.0" refers to the XBox 360 platform. The.NETMicroFramework identifier targets (surprise) the .NET Micro Framework.

And that's all I know about those.

.net framework profiles /.net framework 配置的更多相关文章

  1. Robot Framework 的安装和配置(转载)

    Robot Framework 的安装和配置 在使用 RF(Rebot framework)的时候需要 Python 或 Jython 环境,具体可根据自己的需求来确定.本文以在有 Python 的环 ...

  2. Robot Framework 使用1-环境配置及简单网站兼容性测试(转)

    0.Robot Framework 简介 Robot Framework 是一个通用的自动化测试框架,主要用于“验收测试”和“验收测试驱动开发(ATDD)” (会其它文章中会详细介绍ATDD).它使用 ...

  3. Robot Framework 教程 (1) - 环境配置及简单网站兼容性测试

    0.Robot Framework 简介 Robot Framework 是一个通用的自动化测试框架,主要用于“验收测试”和“验收测试驱动开发(ATDD)” (会其它文章中会详细介绍ATDD).它使用 ...

  4. Robot Framework 安装及环境配置

    Robot Framework 安装及环境配置 Robot Framework 介绍 Robot Framework是一款python编写的功能自动化测试框架.具备良好的可扩展性,支持关键字驱动,可以 ...

  5. Robot Framework 的安装和配置

    Robot Framework 的安装和配置 在使用 RF(Rebot framework)的时候需要 Python 或 Jython 环境,具体可根据自己的需求来确定.本文以在有 Python 的环 ...

  6. Qt Framework 问题之 framework/Versions/A:bundle format unrecognized, invalid, or unsuitable

    在解决标题提到的问题之后,先来介绍下Qt Framework一些基本知识. 基于QT的Mac端工程,在打包时需要对所有需要嵌入到APP的framework及dylib文件进行手动签名处理. 一.签名处 ...

  7. 【Robot Framework】robot framework 学习以及selenium、appnium、requests实践(一)

    话说之前自己写了个selenium的自动化框架,然后又研究了下RF,觉得RF这种基于关键字驱动的框架更为容易上手,当然在做一些比较繁琐的验证时,似乎还不是太灵活,不如自己写几行python来的实惠(也 ...

  8. [Entity Framework] MySQL @ Entity Framework 6

    原文 [Entity Framework] MySQL @ Entity Framework 6 要让MySQL能够用EF6,我花了一点时间,在此记录一下 安装元件 在设定档加入Provider 安装 ...

  9. 【转】iPhone通讯录AddressBook.framework和AddressBookUI.framework的应用

    通讯录中联系人相关的应用iPhone提供了两个框架:AddressBook.framework和AddressBookUI.framework,使用这两个框架我们可以在程序中访问并显示iPhone数据 ...

随机推荐

  1. CUBA-Platform将全面助力中国开发者

    关注CUBA的伙伴们,你们好! 今天我们有新的进展告诉大家. 九月十五日到十六日CUBA平台事业部负责人(同时也是Haulmont公司合伙人)专程来到中国与CUBA中国团队进行了两天时间的交流.讨论. ...

  2. IOS项目之弹出动画三

    前面写了弹出动画两个,今天做商城时又用到了,看着这个用着蛮普遍的,所以记了下来 // // mallMoreView.h // XQB // // Created by City--Online on ...

  3. Spring.Net---3、IoC/DI深入理解

    ------------------------------------------------------------------------ 理解IoC/DI 1.控制反转 --> 谁控制谁 ...

  4. firefox并不支持selectSingleNode和selectNodes的解决方法

    转自:http://qsrock.iteye.com/blog/209585 function test(){ var perid = document.thisForm.PerID.value; v ...

  5. WPF中ScrollViewer嵌套引发滚动失灵的Bug

    事情起因 测试报告说存在滚动条不能拖动的情况,我们几个开发人员多次测试都未重现该问题.后面发现是操作系统的问题,在XP和部分Win7上会存在该问题.而在我们开发人员的机器上,包括Win7 SP1,Wi ...

  6. 【转】Java策略消除if else

    策略(Strategy)模式:又名Policy,它的用意是定义一组算法,把它们一个个封装起来,并且使他们可以相互替换.策略模式可以独立于使用他们的客户端而变化.GOF策略模式静态结构类图如下: 通过上 ...

  7. 撩课-Java每天10道面试题第6天

    51.HashMap的实现原理 HashMap的主干是一个Entry数组. Entry是HashMap的基本组成单元, 每一个Entry包含一个key-value键值对. HashMap基于hashi ...

  8. Thymeleaf学习记录(3)--语法

    语法: 标准表达式语法 简单表达: 变量表达式: ${...} 选择变量表达式: *{...} 消息表达式: #{...} 链接网址表达式: @{...} 字面 文本文字:'one text','An ...

  9. 牛客Wannafly挑战赛23F 计数(循环卷积+拉格朗日插值/单位根反演)

    传送门 直接的想法就是设 \(x^k\) 为边权,矩阵树定理一波后取出 \(x^{nk}\) 的系数即可 也就是求出模 \(x^k\) 意义下的循环卷积的常数项 考虑插值出最后多项式,类比 \(DFT ...

  10. axios使用初涉

    看vue的时候,vue2.0推荐使用axios做http请求,今天就学一下axios基本使用. 安装 axios 推荐npm方法(npm是node.js环境下的包管理器): npm install a ...