.net - How to understand which types will be available depending on supported platforms? -
i'm converting library pcl. not understand how available types depend on selected platforms.
with these settings:
i have fewer availabel types such configuration:
how possible?
there service can see types , operations added|removed depending on selected options?
update
as far understood there naming confusion.
term portable class library related these platforms: .net framework, silverlight, windows phone , xbox 360. @ least documentation says so.
in next version added windows store applications. , here strange things.
how looks icommand
:
..for type.isinstanceoftype()
:
wait! wher windows store? why separate line? if pcl includes windows store how can't wsa support functionality?
one moew oddity: if have .net 4.5, sl5, wp8 , wsa enabled type.isinstanceoftype()
exists , accessible. if disable sl5 method vanishes never there. how on earth can be?
this anwser may helpful.
a few months ago, vagif abilov released project pclanalyzer on github. tool allows scan existing .net class library or executable , identify methods available in specific portable class library configuration.
the tool uses information in this excel file, listing pcl compatible classes, methods, properties etc., , in framework each 1 available.
you can read more vagif's tool on blog. if not want build tool yourself, vagif has provided binaries here.
edit
as specific concerns type.isinstanceoftype()
method being present when include silverlight 5 among targets, while missing if omit sl5, not have definite answer. can make observation combination with sl5 identified pcl profile 158, compatible visual studio 2010, whereas combination without sl5 denoted pcl profile 78 , not compatible vs 2010. reason type.isinstanceoftype()
must have been left out of profile 78. on other hand, profile seems support lot other functionality; might want take @ respective contents of these folders better feeling assemblies respective profiles support:
- c:\program files (x86)\reference assemblies\microsoft\framework.netportable\v4.5\profile\profile78
- c:\program files (x86)\reference assemblies\microsoft\framework.netportable\v4.0\profile\profile158
right out of head cannot replacement implementation of type.isinstanceoftype()
like, shouldn't hard come one, think.
Comments
Post a Comment