Click here to Skip to main content
11,481,404 members (63,598 online)
Click here to Skip to main content

Tagged as

What are portable class libraries?

, 2 Sep 2013 CPOL 16K 5
Rate this:
Please Sign up or sign in to vote.
In this section we will discuss importance of portable class libraries.

The whole point of creating a class library project is reusability. Now we want this reusability not only within a .NET application, not across .NET applications but across different types of .NET applications. Now different types of .NET application means WPF, Windows, Silver light, Windows phone etc.

Now each one of these applications run on different platforms and have different flavors of .NET frameworks. For example silver light application runs inside a browser and has a down sized version of .NET.

So in a silver light application if you try to reference a simple “Class project” you would end with a below error. That’s where portable class libraries are useful. By creating a portable class we can reference it in any kind of .NET project types.

To create a portable class we need to use the portable class template which is available in visual studio as shown in the below figure.

Below is a simple youtube video which demonstrates What are Portable Class library in C#.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Shivprasad koirala
India India

I am a Microsoft MVP for ASP/ASP.NET and currently a CEO of a small
E-learning company in India. We are very much active in making training videos ,
writing books and corporate trainings. Do visit my site for 
.NET, C# , design pattern , WCF , Silverlight
, LINQ , ASP.NET , ADO.NET , Sharepoint , UML , SQL Server  training 
and Interview questions and answers

Comments and Discussions

GeneralGood info Pin
R.Hari Prasath13-Sep-13 0:40
memberR.Hari Prasath13-Sep-13 0:40 
GeneralMy vote of 5 Pin
GutierrezDev2-Sep-13 11:31
memberGutierrezDev2-Sep-13 11:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150520.1 | Last Updated 3 Sep 2013
Article Copyright 2013 by Shivprasad koirala
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid