locked
[UWP]Are UWP Class Libraries == Portable Class Libraries ? RRS feed

  • Question

  • HI,

    My question is :  Are UWP Class Libraries == Portable Class Libraries ?

    IF( YES ) {  can UWP class library be shared with Desktop Apps or WP8/8.1 ? }

    ElseIF ( NO ) {  what are the difference between two type of libraries. ?  and is Portable Class Library Deprecated in favour of UWP Class Library ? }

    Regards



    Friday, July 1, 2016 7:51 AM

Answers

  • Hi ,

    The Portable Class Library project enables you to write and build managed assemblies that work on more than one .NET Framework platform. You can create classes that contain code you wish to share across many projects, such as shared business logic, and then reference those classes from different types of projects.

    To the Portable Class Library (PCL)  you can use from Silverlight, Windows Phone 7, 8, 8.1, Windows 8, 8.1, Universal Windows Platform or Xbox 360/One platforms of course with some limitations. Fore example at the same time on PCL couldn't targeting for Silverlight and UWP becouse there doesn't share any APIs.

    Universal Class Library (UCL)  designed only for UWP apps. For example you can't use UCL in WPF but at the same time you can use PCL both in UWP and WPF 

    UWP Class Libraries != Portable Class Libraries 



    Friday, July 1, 2016 9:34 AM

All replies

  • Hi ,

    The Portable Class Library project enables you to write and build managed assemblies that work on more than one .NET Framework platform. You can create classes that contain code you wish to share across many projects, such as shared business logic, and then reference those classes from different types of projects.

    To the Portable Class Library (PCL)  you can use from Silverlight, Windows Phone 7, 8, 8.1, Windows 8, 8.1, Universal Windows Platform or Xbox 360/One platforms of course with some limitations. Fore example at the same time on PCL couldn't targeting for Silverlight and UWP becouse there doesn't share any APIs.

    Universal Class Library (UCL)  designed only for UWP apps. For example you can't use UCL in WPF but at the same time you can use PCL both in UWP and WPF 

    UWP Class Libraries != Portable Class Libraries 



    Friday, July 1, 2016 9:34 AM
  • Thanks :)
    Friday, July 15, 2016 8:21 AM