2

I'm playing around with .NET portable to create a library and have been encountering some issues when trying to create instances of KeyedByTypeCollection.

I've checked my references (.NET Portable Subset) and System.Collections.Generic seems to be showing the KeyedByTypeCollection.

http://msdn.microsoft.com/en-us/library/ms404549.aspx - MSDN seems to indicate that it should be supported as well.

Despite that, Visual Studio & the compiler still seem unable to resolve the type.

Any idea what I might be missing here? Thanks!

Alexander Trauzzi
  • 7,277
  • 13
  • 68
  • 112
  • Do you have a reference to System.ServiceModel.dll? – Ani Jun 25 '12 at 03:06
  • Whenever I try to add it, the dialogue disappears and it isn't added to my references. But when I look at .NET portable subset in the explorer, it shows up in that listing there... – Alexander Trauzzi Jun 25 '12 at 03:11
  • What combination of platforms are you targeting in your portable library? (As far as adding the reference goes, the portable class library project should now automatically reference all framework assemblies that are available.) – Daniel Plaisted Jul 09 '12 at 22:46

1 Answers1

2

The documentation is wrong. KeyedByTypeCollection is not supported in portable library. What's your usage?

David Kean
  • 5,722
  • 26
  • 26