c# - What does the portable class library actually solve? -


i wondering, pcl solve? if limit me types cross-platform, why didn't microsoft make feature in standard .net library through ide?

basically, can compile .net library containing poco objects , reference dll in silverlight, wpf, , windows store app without needing recompile or having issues. there hard examples of code works in pcl not work in standard .net library?


oh, , know there things work in standard .net library, i'm not concerned that... guess question this:

is there code compile in portable class library, not function correclty if exact same code in .net library?

two things:

first, if intention create library work on multiple platforms, don't want find out @ runtime accidentally used api wasn't available on platforms (via typeloadexception or missingmethodexception or something). portable class libraries give intellisense apis supported on platforms you're targeting, , build errors outside set.

second, if create .net framework library uses apis available on platforms, dll created still will not work on other platforms (ie windows phone , silverlight) without compiling library platforms. sounds expect would, , reasonable expectation has not been true in past. portable class libraries way making work (and in fact case if create class library windows store apps , use apis available .net framework , wp8, resulting binary would work on both of platforms unchanged).


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -