惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

博客园 - Zhongjian Zhang

人生的意义岂止是谋生-新视野大学英语第二册第八单元A课文 - Zhongjian Zhang - 博客园 格式化类型和分析字符串 类接口/Class Interface LG 3D投影 directory searchPattern to regex pattern Textbox/ComboBox 自动完成AutoCompletion Bloom's Taxonomy/布鲁姆分类 Data Structure/数据结构 in .Net Custom Shapes/Combin Shapes/合并图形 in PowerPoint 2010 scale up vs scale out/Scale vertically vs. horizontally Window Types(Tool windows/document windows)/窗口类型(工具窗口/文档窗口) in VS VS2010中shortcut key快捷键一览下载 随机long(Random long/NextLong) Windows Azure Storage Explorer List System Error Codes/系统错误代码 图解500强 超级计算机 In graphics: Supercomputing superpowers FTP active mode and assive mode(ftp 主动模式/被动模式) Ftp commands and options 为VM制作可引导的操作系统ISO
.net framework profiles /.net framework 配置
Zhongjian Zhang · 2013-07-22 · via 博客园 - Zhongjian Zhang

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