.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:

  1. is silverlight whole executing engine? replaces .net engine? or set of assemblies?
  2. are silverlight , .net assemblies different? compatible?
  3. 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:

enter image description here

these 3 references creared following csproj line:

<reference include="microsoft.phone.controls, version=8.0.0.0, culture=neutral, publickeytoken=24eec0d8c86cda1e, processorarchitecture=msil" /> 

  1. 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.
  2. 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)
  3. 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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -