.net - Some Silverlight and Windows Phone generic questions of a beginner -
i'm starting developing windows phone applications , having strong background in wpf first time silverlight. there things don't understand yet:
- is silverlight whole executing engine? replaces .net engine? or set of assemblies?
- are silverlight , .net assemblies different? compatible?
- why winows phone 8 project in visual studio 2012 shows 3 references when @ csproj there reference microsoft.phone.controls.dll?
about point 3, screenshot make more clear:
these 3 references creared following csproj line:
<reference include="microsoft.phone.controls, version=8.0.0.0, culture=neutral, publickeytoken=24eec0d8c86cda1e, processorarchitecture=msil" />
- somewhat simplified can think of silverlight subset of full (desktop) .net framework. more point, .net available on windows phone 8 supports subset of "traditional" .net capabilities. wpf perspective you'll notice there no support commands use them in desktop application instance, there many other smaller differences.
- yes, silverlight , desktop .net assemblies different. while many classes pretty identical in 2 environments, actual assemblies different. can't instance take assembly built using desktop .net framework , directly use on windows phone (although if have source code it's possible can build source windows phone assembly)
- not sure question here. typically see reference
windows phone
standard framework assembly in projects (plus, of course, other assemblies choose reference)
if you're looking @ sharing code across .net platforms (e.g. desktop, phone, win8/rt), you'll want take @ portable class libraries. these target common subset of .net functionality can run on supported platforms. it's handy way of sharing code between windows phone , windows 8 apps instance.
Comments
Post a Comment