当前位置: 首页 > news >正文

.net framework profiles /.net framework 配置

几年前一篇关于 .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):

VersionProfileDisplay NameFrameworks
4.0Profile1.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.0Profile2.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.0Profile3.NET Portable Subset (.NET Framework 4, Silverlight 4).NETFramework,Version=v4.0,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
4.0Profile4.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.0Profile5.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.0Profile6.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.0Profile14.NET Portable Subset (.NET Framework 4, Silverlight 5).NETFramework,Version=v4.0,Profile=* (.NET Framework)
Silverlight,Version=v5.0 (Silverlight)
4.0Profile18.NET Portable Subset (.NET Framework 4.0.3, Silverlight 4).NETFramework,Version=v4.0.3,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
4.0Profile19.NET Portable Subset (.NET Framework 4.0.3, Silverlight 5).NETFramework,Version=v4.0.3,Profile=* (.NET Framework)
Silverlight,Version=v5.0 (Silverlight)
4.0Profile23.NET Portable Subset (.NET Framework 4.5, Silverlight 4).NETFramework,Version=v4.5,Profile=* (.NET Framework)
Silverlight,Version=v4.0 (Silverlight)
4.0Profile24.NET Portable Subset (.NET Framework 4.5, Silverlight 5).NETFramework,Version=v4.5,Profile=* (.NET Framework)
Silverlight,Version=v5.0 (Silverlight)
4.0Profile36.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.0Profile37.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.0Profile41.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.0Profile42.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.0Profile46.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.0Profile47.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.0Profile88.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.0Profile95.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.0Profile96.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.0Profile104.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.0Profile131.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.0Profile136.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.0Profile143.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.0Profile147.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.0Profile154.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.0Profile158.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.5Profile7.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.5Profile49.NET Portable Subset (.NET Framework 4.5, Windows Phone 8).NETFramework,Version=v4.5,Profile=* (.NET Framework)
WindowsPhone,Version=v8.0 (Windows Phone)
4.5Profile78.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.

 

转载于:https://www.cnblogs.com/zzj8704/p/3205680.html

相关文章:

  • 宽容,是创新的土壤
  • C++ 虚析构函数,纯虚析构函数【转】
  • Linux下vi的使用
  • 洛谷 - P4567 - 文本编辑器 - 无旋Treap
  • 戴尔联合微软开发私有云入门级系
  • 模板 - 可持久化无旋Treap
  • Windows Phone灵魂诠释:Metro UI界面完全解析
  • 深入浅出计算机组成原理学习笔记:局部性原理-数据库性能跟不上,加个缓存就好了(第36讲)...
  • 试了下xcode的arc
  • SCUT - 216 - 宝华科技树
  • oracle
  • 2019牛客暑期多校训练营(第八场) - B - Beauty Values - 水题
  • 免费ARP的作用
  • SCUT - 161 - 灯游 - 数学
  • service命令
  • co.js - 让异步代码同步化
  • iOS小技巧之UIImagePickerController实现头像选择
  • JavaScript/HTML5图表开发工具JavaScript Charts v3.19.6发布【附下载】
  • python学习笔记 - ThreadLocal
  • QQ浏览器x5内核的兼容性问题
  • Spring Cloud Feign的两种使用姿势
  • supervisor 永不挂掉的进程 安装以及使用
  • vue从入门到进阶:计算属性computed与侦听器watch(三)
  • win10下安装mysql5.7
  • 工作中总结前端开发流程--vue项目
  • 简单易用的leetcode开发测试工具(npm)
  • 近期前端发展计划
  • 漫谈开发设计中的一些“原则”及“设计哲学”
  • 如何优雅的使用vue+Dcloud(Hbuild)开发混合app
  • 三分钟教你同步 Visual Studio Code 设置
  • 什么软件可以提取视频中的音频制作成手机铃声
  • 推荐一个React的管理后台框架
  • 在Mac OS X上安装 Ruby运行环境
  • 白色的风信子
  • JavaScript 新语法详解:Class 的私有属性与私有方法 ...
  • #define 用法
  • $GOPATH/go.mod exists but should not goland
  • (Redis使用系列) Springboot 使用redis的List数据结构实现简单的排队功能场景 九
  • (webRTC、RecordRTC):navigator.mediaDevices undefined
  • (附源码)基于SpringBoot和Vue的厨到家服务平台的设计与实现 毕业设计 063133
  • (规划)24届春招和25届暑假实习路线准备规划
  • (四) 虚拟摄像头vivi体验
  • (转载)PyTorch代码规范最佳实践和样式指南
  • .net core 6 集成 elasticsearch 并 使用分词器
  • .Net+SQL Server企业应用性能优化笔记4——精确查找瓶颈
  • .NET6 命令行启动及发布单个Exe文件
  • .net访问oracle数据库性能问题
  • .pyc文件还原.py文件_Python什么情况下会生成pyc文件?
  • .考试倒计时43天!来提分啦!
  • // an array of int
  • @configuration注解_2w字长文给你讲透了配置类为什么要添加 @Configuration注解
  • [ 渗透测试面试篇 ] 渗透测试面试题大集合(详解)(十)RCE (远程代码/命令执行漏洞)相关面试题
  • [20190416]完善shared latch测试脚本2.txt
  • [Bugku]密码???[writeup]
  • [C#]C# winform实现imagecaption图像生成描述图文描述生成