13
Cross-Platform Mobile Development with PCLs Seth Valdetero

Cross-Platform Mobile Development with PCLs

Embed Size (px)

DESCRIPTION

Portable class libraries are a great way to maximize code sharing across platforms. With Xamarin having full support for it, there is no reason not to use them. In this session we will be creating a cross-platform application using PCLs and MVVM to maximize our code sharing. We will also be utilizing HttpClient, async/await, and SQLite.

Citation preview

Page 1: Cross-Platform Mobile Development with PCLs

Cross-Platform Mobile Development with PCLsSeth Valdetero

Page 2: Cross-Platform Mobile Development with PCLs

2

Seth Valdetero

Senior Development Consultant@[email protected]/in/valdeterogithub.com/valdeterosparkhound.com/pages/blogs.aspx

Page 3: Cross-Platform Mobile Development with PCLs

Agenda

3

1. Portable Class Libraries2. Shared Projects3. Demo4. ???5. PROFIT!!!!

Page 4: Cross-Platform Mobile Development with PCLs

File Linking

4

Page 5: Cross-Platform Mobile Development with PCLs

Portable Class Library

5

• Least Common Denominator• Target Frameworks• Profiles

Page 6: Cross-Platform Mobile Development with PCLs

Portable Class Library

6

slodge.blogspot.com/2012/05/portable-class-libraries-in-mvvmcross.html

Page 7: Cross-Platform Mobile Development with PCLs

Portable Class Library

7

Page 8: Cross-Platform Mobile Development with PCLs

Portable Class Library

8

twitter.com/JamesMontemagno/status/472968183301697536

Page 9: Cross-Platform Mobile Development with PCLs

Shared Project

9

Page 10: Cross-Platform Mobile Development with PCLs

DEMO

10

Page 11: Cross-Platform Mobile Development with PCLs

Questions?

11

Page 12: Cross-Platform Mobile Development with PCLs

Links• twitter.com/JamesMontemagno/status/472968183301697536• danrigby.com/2014/05/14/supported-pcl-profiles-xamarin-for-visual-studio-2/ • developer.xamarin.com/guides/cross-platform/application_fundamentals/pcl/

introduction_to_portable_class_libraries/ • msdn.microsoft.com/en-us/library/windows/apps/dn609832.aspx• msdn.microsoft.com/en-us/library/gg597391%28v=vs.110%29.aspx• embed.plnkr.co/03ck2dCtnJogBKHJ9EjY/preview• slodge.blogspot.com/2012/05/portable-class-libraries-in-mvvmcross.html • blogs.msdn.com/b/dsplaisted/archive/2012/08/27/how-to-make-portable-class-

libraries-work-for-you.aspx • blogs.msdn.com/b/dotnet/archive/2014/04/21/sharing-code-across-platforms.aspx

12

Page 13: Cross-Platform Mobile Development with PCLs

13

Seth Valdetero

Senior Development Consultant@[email protected]/in/valdeterogithub.com/valdeterosparkhound.com/pages/blogs.aspx