Blog author:
Amitkpatel | Posted on: 6/25/2012 | Category:
WCF Blogs | Views: 738 | Status:
[Member] |
Points: 75
|
Alert Moderator
Introduction: Few days back I was working windows phone application as usual I created class library project for keeping separate business login. But I realize we cannot add as a reference normal class library in the Windows Phone 7 Application.
Purpose: 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 more.
To install the Portable Class Library in your machine you can use. Visual Studio 2010, save the download file (PortableLibraryTools.exe) on your computer, and run the installation program from a Command Prompt window. Include the /buildmachine switch on the command line.
Following Assemblies are used for Portable Class Library.
· mscorlib.dll
· System.dll
· System.Core.dll
· System.Xml.dll
· System.ComponentModel.Composition.dll
· System.Net.dll
· System.Runtime.Serialization.dll
· System.ServiceModel.dll
· System.Xml.Serialization.dll
· System.Windows.dll (from Silverlight)
Steps to create Portable Class Library in Visual Studio 2011.
Step 1: Create a new project and choose Portable Class Library.
Step 2: Now go to project properties and select library tab and click on the change button, you will see
Change Target Framework Dialog box there you can select framework for your library.
Reference from
Amit Kumar Patel
http://blog.iquestionanswer.co.in
http://www.iquestionanswer.co.in
Found interesting? Add this to: