Download presentation
Presentation is loading. Please wait.
Published byEvangeline Pierce Modified over 8 years ago
3
Part time at Arcanic and freelance consultant Mostly backend development Past few years focus has been on Windows Phone and Windows Store (Windows 8/8.1) development
4
Portable Libraries – Sharing code between platforms Intro PCL fundamentals Demo Working with PCL Crucial/notable PCLs PCL behind the scenes
5
A lot of new.NET platforms in a short time Desktop / Core.NET Silverlight Windows Phone Windows Store (Windows 8/8.1) Xbox 360 / Xbox One Android / iOS (via Mono / Xamarin)
6
Sharing code between platforms were notoriously annoying Each platform had it’s own “class libraries” No cross-platform reusability PCL introduces shared class libraries across platforms
7
Started as a Microsoft created Visual Studio (VS) extension Built into VS 2012/2013 It appears that all new releases from Microsoft is in PCLs where it makes sense
8
You choose the platforms the library should support In return you will have a limited shared code base available
9
Principle: Lowest common denominator
10
Demo Create a PCL and selecting platforms
11
Feature.NET FrameworkWindows StoreSilverlightWindows PhoneXbox 360 Core√√√√√ LINQ√√√√ IQueryable√√√7.5 and higher Dynamic keywordOnly 4.5√√ Managed Extensibility Framework (MEF) √√√ Network Class Library (NCL)√√√√ Serialization√√√√ Windows Communication Foundation (WCF) √√√√ Model-View-View Model (MVVM) Only 4.5√√√ Data annotationsOnly 4.0.3 and 4.5√√ XLINQOnly 4.0.3 and 4.5√√√√ System.Numerics√√√
12
Microsoft Http Client Libraries (Microsoft.Net.Http / HttpClient) Json.NET MVVM Light
13
API: Shared API entities and API consumption Platform features through indirection MVVM: Sharing view models
14
Major improvements in.NET for restful apis Shared Entities via PCL Web API HttpClient
15
Advanced concept Requires excellent code design to be valuable Demo
16
Not everything is shared in PCL: Storage, UI pop-ups etc. We can work around this using indirection Demo
17
Profiles.NET Type Forwarding C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable
18
Shared code between platforms Available in.NET 4.0+, Windows Store, Windows Phone, Silverlight and Xbox 360 (and Xbox One?)
19
Q&A
20
Evaluation Create a Text message on your phone and send it to 1919 with the content: DE303 5 5 5 I liked it a lot Session Code Kasper Performance (1 to 5) Match of technical Level (1 to 5) Relevance (1 to 5) Comments (optional) Evaluation Scale: 1 = Very bad 2 = Bad 3 = Relevant 4 = Good 5 = Very Good! Questions: Speaker Performance Relevance according to your work Match of technical level according to published level Comments
21
© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.