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?
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.
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!
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
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.
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
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.
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?
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 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.
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?).
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.
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
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.