什么是可移植类库? [英] What is a Portable Class Library?
问题描述
在MSDN我注意到一个关于便携式类库
部分,在版本信息。
请参阅 System.Object的
为例。 <一href="http://msdn.microsoft.com/en-us/library/system.object.aspx">http://msdn.microsoft.com/en-us/library/system.object.aspx
我做了一个简单的谷歌搜索,但没有找到关于便携式类库
东西。有谁知道这里是什么或者我可以找到关于它的更多信息?
更新2013年7月10日:在PCL联盟的优秀状态从@shanselman 有很多具体的例子,截图和链接汇总的博文。这里提出任何其他的答案在阴凉处。
更新2013年5月20日:
- 在实际应用中这平板显示播客的影响进行跨设备的东西(想Xamarin工作室)与Atley猎人<非常实用的覆盖面/ A>。关键外卖: - PCLS是一个非常有用的约束强加onself在跨设备的情况下的 。
- 一的库提到WRT即优良MvvmCross这是在一个单独的平板显示集71 讨论一>与它的作者 @Stuart洛奇。所描述的斯图尔特这里只有轻微的调整到环境设置是必要的,以杠杆PCLS用于上述目的。
更新2013年4月19日:这一切是如何挂在一起,通过智能感知到一个的通过博客文章西蒙·库珀
视频:<一href="http://channel9.msdn.com/Shows/Visual-Studio-Toolbox/Visual-Studio-ToolboxPortable-Class-Libraries">Channel 9 Visual Studio的工具箱中显示的情节2012年6月14日
视频:<一href="http://channel9.msdn.com/Shows/Going+Deep/NET-45-David-Kean-and-Marcea-Trofin-Portable-Libraries">Channel 9展望深秀节目2011年9月27日
更新2012年9月11日:<一href="http://blogs.msdn.com/b/dsplaisted/archive/2012/08/27/how-to-make-portable-class-libraries-work-for-you.aspx">Good高水平的博客文章与图片,图表和激励例子来说明如何MVVM灯和RX使用它
更新2012年4月11号:很好<一href="http://feedproxy.google.com/~r/ScottHanselman/~3/wqDMRn_q6KA/HiddenGemsInVisualStudio11BetaNETPortableClassLibraries.aspx">end最终,获取的点在开发说话的速度非常快,包括截图这里一块在Scott Hanselman(也包含很有见地怎么想起来的信息和链接样本)。此外,还包括在最后一节的资源是pretty的多重复这整个帖子:D </ P>
更新2012年7月9日:<一href="http://blogs.msdn.com/b/dotnet/archive/2012/07/06/targeting-multiple-platforms-with-portable-$c$c-overview.aspx">This博客系列的开发团队的米尔恰·Trofin(其中一部分至今)是最完整的覆盖的是,包括截图和详细的矩阵显示在您选择可用的功能,如果你进入的是诸如此类的事情。
请参阅<一href="http://blogs.msdn.com/b/bclteam/archive/2011/01/19/announcing-portable-library-tools-ctp-justin-van-patten.aspx">Portable库工具anouncement博客帖子,这将启动: -
便携式图书馆工具CTP增加了一个新的可移植类库项目模板到Visual Studio,可用于创建在C#和VB,关于各种.NET平台上运行,而无需重新编译类库。
它用于创建一个类库,针对多个平台(ESP Silverlight的变种,如WP7和SL4,但包括XNA在Xbox)在同一时间。
又见
这相关的总结篇另请参阅本次发布的通知。
有关降浊的细节,<一个href="http://blogs.msdn.com/b/bclteam/archive/2012/04/11/multi-targeting-guidelines-for-tools-for-managed-$c$c-mirceat.aspx">see多目标指引工具管理code
On MSDN I noticed a section about a Portable Class Library
, under Version Information.
See System.Object
for an example. http://msdn.microsoft.com/en-us/library/system.object.aspx
I did a brief Google search and couldn't find anything about the Portable Class Library
. Does anyone here know what it is or where I could find more information about it?
UPDATE Jul 10 2013: Excellent state of the PCL union summary blogpost from @shanselman with lots of concrete examples, screenshots and links. Puts any other answer here in the shade.
UPDATE May 20 2013:
- Very practical coverage of practical application and implications of this for cross-device stuff (think Xamarin Studio) in Tablet Show podcast with Atley Hunter. Key takeaway:- PCLs are a very useful constraint to impose on onself in cross-device scenarios.
- One of the libraries mentioned wrt that is the excellent MvvmCross which is discussed in a separate Tablet Show Episode 71 with it's author @Stuart Lodge. Only minor tweaking as described by Stuart here to environment setup is necessary to leverage PCLs for such purposes.
UPDATE Apr 19 2013: Excellent dense summary of how it all hangs together from Intellisense through to run time in a blog post by Simon Cooper
Video: Channel 9 Visual Studio Toolbox show episode 14 June 2012
Video: Channel 9 Going Deep Show episode 27 Sep 2011
UPDATE Sep 11 2012: Good high level blog post with pictures, diagrams and motivating examples showing how MVVM Light and RX use it
UPDATE Apr 11 2012: Very good end to end piece by Scott Hanselman that gets to the point in dev speak very quickly including screenshots here (also contains very insightful 'how to think of it' information and links to samples). Also includes a resources section at the end that pretty much duplicates this entire post :D
UPDATE Jul 9 2012: This blog series by Mircea Trofin of the dev team (one part so far) is the most complete coverage yet, including screenshots and detailed matrices showing available features across your selections if you're into that sort of thing.
See Portable Library Tools anouncement blog post, which starts:-
The Portable Library Tools CTP adds a new "Portable Class Library" project template to Visual Studio that can be used to create class libraries in C# and VB that run on the various .NET platforms without recompiling.
It's used for creating a Class Library that targets multiple platforms (esp Silverlight variants such as WP7 and SL4, but including XNA on Xbox) at one time.
See also this InfoQ summary article
See also this release notice.
For down and dirty details, see Multi-Targeting Guidelines for Tools for Managed Code
这篇关于什么是可移植类库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!