Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>This might be exactly what you are looking for:</strong></p> <pre><code>Assembly asm = Assembly.GetExecutingAssembly(); string[] parts = asm.FullName.Split(','); string version = parts[1]; </code></pre> <p><a href="http://forums.silverlight.net/forums/p/23321/82774.aspx#82774" rel="nofollow noreferrer">http://forums.silverlight.net/forums/p/23321/82774.aspx#82774</a></p> <p>4 is backward compatible with 3, 3 is backward compatiable with 2.</p> <p>You should know which version of silverlight the app is built in.</p> <p><strong>Installation and detection:</strong></p> <p>This one has a Javascript file that will detect if SL is installed and What version: <a href="http://blog.mdk-photo.com/post/Detecting-Silverlight-version-installed.aspx" rel="nofollow noreferrer">http://blog.mdk-photo.com/post/Detecting-Silverlight-version-installed.aspx</a></p> <p><a href="http://www.apijunkie.com/APIJunkie/blog/post/2009/04/How-to-programmatically-detect-Silverlight-version.aspx" rel="nofollow noreferrer">http://www.apijunkie.com/APIJunkie/blog/post/2009/04/How-to-programmatically-detect-Silverlight-version.aspx</a></p> <p><a href="https://stackoverflow.com/questions/20722/version-detection-with-silverlight">Version detection with Silverlight</a></p> <p><a href="http://www.scribd.com/doc/14938624/Creating-a-Custom-Silverlight-Installation-Experience" rel="nofollow noreferrer">http://www.scribd.com/doc/14938624/Creating-a-Custom-Silverlight-Installation-Experience</a></p> <p><a href="http://blogs.msdn.com/tims/archive/2007/10/29/optimizing-the-silverlight-install-experience.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/tims/archive/2007/10/29/optimizing-the-silverlight-install-experience.aspx</a></p> <p>Thge GAC will also notify you durring compile if you are running the wrong version of SL. Typically when you have Silverlight tools installed and try to compile an app. For instance your assembly is created in version 3 and you use a control that is only available in 3, you will have to have SL 3 tools installed or the build will error letting you know. </p> <p><strong>More on the Silverlight assemblies:</strong></p> <p><a href="http://www.netfxharmonics.com/2008/12/Reusing-NET-Assemblies-in-Silverlight" rel="nofollow noreferrer">http://www.netfxharmonics.com/2008/12/Reusing-NET-Assemblies-in-Silverlight</a></p> <p><a href="http://nerddawg.members.winisp.net/AssemblySniffer/" rel="nofollow noreferrer">http://nerddawg.members.winisp.net/AssemblySniffer/</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload