Portable Library Tools 2

Microsoft Free

Provides tools for Visual Studio 2010 for creating class libraries that run on Windows, Silverlight, Windows Phone and Xbox 360.

Microsoft
(25) Review
Visual Studio
2010
Download (59,813)
9/21/2012
10.0.50828
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (25)
Q and A (126)
Sign in to write a review
Sort by:

by Yoru No Tori | September 18 2013

I ve got Visual studio 2012, would be nice to have this tool for this version of the software... :O please???

by Kiếm Tiên - Diệp Nhược Ca | January 02 2013

Microsoft Visual Studio 2010 (with SP1) must be installed before installing Portable Library Tools 2 for Visual Studio 2010.
But I installed Microsoft Visual Studio 2010 SP1. What is problem?

by Caio Vilas Boas | December 07 2012

Works great, but would be nice to have Silverlight support.

by modalove | September 18 2012

Amazing Tool! but -1 for testability.
Thank you so much

by rick.duarte-br | September 12 2012

System.ComponentModel.DataAnnotations is not available for Windows Phone.

by Jonas Kello | July 24 2012

Perfect! Now we can use the FieldOffset attribute! Thank you for releasing this!

by Another Developer Guy | July 18 2012

This is probably the most useful tool that I have ever used. I hate cluttering my code #if. Keep up the excellent work!

This can support assembly sharing for all the major platforms Android/Silverlight/iOS/WP/Metro/.NET/Xbox. Developer's paradise!

by Lidan Hackmon | May 26 2012

Amazing tool. Still, there are some missing objects.
Mainly:
ObservableCollection (cannot be shared with PC .Net 4)
WebClient

Edit:
The latest release contains ObservableCollection! This is awesome!
I'm actually able to share the same project between Windows Phone, PC and WCF service of the same application.

Thumbs up BCL Team.
Lidan.

by The Thinker | May 19 2012

Great!

by George Danila | May 13 2012

Excelent :D

by Brian Swiger | March 19 2012

Great addition that was desperately needed for multi-platform. It's not perfect yet, but is a great stride forward to delivering a cross-platform runtime. Please keep adding namespaces such as the new ones introduced in .NET 4 and 4.5. Thank you!

by Mike Feng | March 07 2012

It is great tool, but as the other said, please add the namespace System.XML.Linq and System.ComponentModel.DataAnnotations.dll since they are available in new .net framework. http://support.microsoft.com/kb/2600211

BCL Team May 09 2012
| Edit |
Delete

The new update includes support for these, when targeting platforms that support it (.NET 4.0.3, Silverlight, Phone and .NET for Metro style apps).

by Daniel B Holt | February 25 2012

by Xperiandri | January 04 2012

Could you add Silvelight 5 support?

by Zverev Eugene | December 19 2011

Extremelly needed tool.

by MikeBMcL | November 20 2011

This is an extremely useful tool. It has helped me a lot when designing data models for projects where the target platforms have not yet been finalized and where leaving open the option to add additional platforms in the future is desirable.

by Jonathan Allen | November 14 2011

I love the idea, but as it stands I can't use it. At the very least I need "View Model Support" across .NET, Silverlight, and Windows Phone.

BCL Team May 09 2012
| Edit |
Delete

In the latest update, support for sharing View Model is available between .NET 4.5 and the other platforms.

by ealbert1 | September 19 2011

For the purpose of validating the Models/Dtos both in the UI and server side, it would be beneficial if IDataErrorInfo is available.

by Jozef Izso | September 14 2011

by Alex F. Sherman | September 08 2011

1 - 20 of 25 Items   
Sign in to start a discussion


  • CallerMemberNameAttribute
    3 Posts | Last post November 01, 2012
    • It's not official but the Silverlight 5 compiler *does* already support automatically looking up caller members to alleviate implementing INotifyPropertyChanged.
      
      You'd have to add the class System.Runtime.CompilerServices.CallerMemberNameAttribute manually in your library, believe it or not!
      
      http://trelford.com/blog/post/CallMeMaybe.aspx
      
      Weird. So, would be nice if the Portable Class Library would support this and provide the class out-of-the-box and officially.
    • Thanks for the suggestion. If you wait a couple of more days, your wish will be granted. :) Keep a watch out for the async update that we talk about here: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2691068-support-async-in-portable-class-libraries. This will include CallMemberNameAttribute support.
    • We added this support in the package available from here: http://blogs.msdn.com/b/bclteam/archive/2012/10/22/using-async-await-without-net-framework-4-5.aspx
  • When Will Portable Library Tools 2 RTM?
    4 Posts | Last post September 21, 2012
    • They've been RC stage for a month, and Visual Studio 2012 which uses the newer portable libraries has already released. Due to policy I can't use them until ther are officially released so I'm stuck on the old Portable Library tools which aren't even available from Microsoft anymore.
    • Yes, they will RTM soon.
    • Any update? It's been almost a month.
    • We've uploaded the RTM.
  • Removing Expect: 100-Continue header from HttpWebRequest POST
    1 Posts | Last post September 16, 2012
    • Hi,
      
      I can't find HttpWebRequest.ServicePoint or System.Net.ServicePoint.Expect100Continue property in PCL that likes other .net platforms has.
      Can I excluding the Expect header from HttpWebRequest? or any other workaround?
      
  • XmlAnyElementAttribute supported but XmlElement not?
    2 Posts | Last post September 12, 2012
    • see http://stackoverflow.com/questions/12301157/portable-class-library-xmlanyelementattribute
      
      It is basically impossible to use XmlAnyElementAttribute as per the documentation since XmlElement is not supported.
      
    • I've replied to the thread on stackoverflow, basically, XElement is its replacement.
  • None of the Operations are generated when adding a Service Reference
    1 Posts | Last post September 12, 2012
    • I added a Service Reference and the IMyServiceReference interface is empty and no operations are generated in the IMyServiceReferenceClient.
      
      I was trying to convert a current solution to use Portable Class Libraries. So I created a new project, and just added the Service Reference.
  • GeoCoordinate
    1 Posts | Last post September 10, 2012
    • I develop for WP7, WinRT and .NET 4.5 (App Push Notifications). Please add supoport for GeoCoordinate. I use it in several of my models and it is supported by all environments except WinRT where they have changed things and used a different class (Why?).
  • Problems creating Service Reference
    3 Posts | Last post September 10, 2012
    • When I'm creating a Service Reference in a Portable Library, I get problems when the WCF service (on the server!) is configured to use the transport clientCredentialType "windows".
      
      I get a "custom tool error" that says "the transport of 'windows' is not supported".
      
      I'll have to remove this configuration at the server, then create or update the service reference, and then I can add this configuration again.
      
      This is annoying, I think the Portable Library should rather simply not care and create the proxy code anyway.
    • Thanks for the feedback, basically the reason you are getting an error, is because "windows" isn't supported everywhere (ie Phone), and we're blocking you from creating a service reference that won't work at runtime. Unfortunately, we have a limitation where we don't currently decide that based on whether you are targeting Phone or not.
      
      Would you prefer us to the create the service anyway?
    • that's right, I'm not even targeting Phone, and yup, definitely the service should be created anyway, as long as the generated proxy code is not any different.
  • System.ComponentModel.DataAnnotations reference missing
    2 Posts | Last post September 07, 2012
    • Hi, 
      I have installed Portable Library Tool. I am using VS 2010 Ultimate 4.0.30319 SP1Rel version. I am not able to add System.ComponentModel.DataAnnotations reference to my portal class library project.
      
      Please any let me know how do i fix this issue?
      
      Thanks,
      Pon Kumar Pandian.T
    • What platforms are you targeting? DataAnnotations is only supported in .NET 4.0.3 and above, SL4 and Windows Store apps.
  • ObservableCollection reference gives problem.
    2 Posts | Last post September 07, 2012
    • Hi,
      
      TreeViewNode model is created in portable library project. When i am trying to create object for this model's observable collection. I am getting below error.
      
      Code:
      public class TreeViewNode
          {
              public TreeViewNode();
      
              public string CheckBoxVisibilityStr { get; set; }
              public int ID { get; set; }
              public string ImagePath { get; set; }
              public bool IsChecked { get; set; }
              public string Name { get; set; }
              public int NestedLevel { get; set; }
              public TreeViewNodeType NodeType { get; set; }
              public int? ParentID { get; set; }
              public ObservableCollection<TreeViewNode> SubNodes { get; set; }
              public string ToolTipText { get; set; }
          }
      TreeViewNode currNode = new TreeViewNode();
      currNode.SubNodes = new ObservableCollection<TreeViewNode>();  
      
      Error:
      
      Cannot implicitly convert type 'System.Collections.ObjectModel.ObservableCollection<UI.Model.TreeViewNode>' to 'System.Collections.ObjectModel.ObservableCollection`1<UI.Model.TreeViewNode>'	C:\SMARTSolutions\Dev\1.0\UI\Portal\UI.ServiceAdapter\Modules\WidgetProvider.cs	116	41	UI.ServiceAdapter
      
    • Can you describe your project structure? What are you referencing from where? In which project do you get the error? From the looks of it%2G you might be trying to reference a portable library targeting .NET 4.5 from a .NET 4.0 project, if so, then this error is expected. .NET 4.0 cannot share ObservableCollection with portable - only 4.5 can.
  • System.Data
    2 Posts | Last post September 05, 2012
    • Specifically System.Data.Linq . Am I correct that this is not included?
    • Yes, we don't support DLINQ. This is something that we're painfully aware of, and we're investigating a data story for a future version.
11 - 20 of 126 Items