Hanuk's Microsoft Platform Strategy Blog

Hanu Kommalapati's musings on platform strategies.

Silverlight for the Enterprises - where are my dlls?

I recently spoke to a customer who wanted to know if Silverlight extracts the dlls (from the XAP) and stores them in the temp directories before building the type system in memory. The reason for the question was that they have a monitoring system that looks for patterns of unwanted files (e.g. *dll) and gets rid of them from directories except from the well known directories. When Silverlight downloads XAPs, it takes advantage of the browser cache in storing the packages. 

Once a package is located ( through download or from the cache), Silverlight runtime streams the IL code out of the XAP and constructs the assembly in memory. From there, construction of type system is straight forward.

So, as of beta1, Silverlight 2 will not leave any dlls persistently on the disk.

Cheers,

Hanu

Published Monday, May 19, 2008 5:18 PM by hanuk

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Discount Airline Tickets » Silverlight for the Enterprises - where are my dlls? said:

May 19, 2008 7:27 PM
 

Jeff Handley said:

With Silverlight using the browser cache, the DLLs could be left on disk within the temporary internet files folder, correct?

May 20, 2008 1:13 PM
 

hanuk said:

You will only see .XAP file on the file system (browser cache). At run time the DLLs will be streamed into memmory and go away once you close the browser. As of beta1, they won't leave any footprint on disk.  

May 20, 2008 1:56 PM
 

Eloff said:

Unless you load the .dlls dynamically, i.e. separately from the .xap. Then I imagine that they will be in the cache.

May 24, 2008 10:31 AM
 

unknown said:

How can I load .dlls dynamically.

June 9, 2008 3:58 AM
 

hanuk said:

You can't load a random .NET dll. If they DLL had been compiled to Silverlight runtime, it will have to be included into the XAP package. Once it is in the package, you can stream the dll into Silvelright applicaiton and use reflection to instantiate the types. See my other post on "Application Partitioning" for this technique.

June 13, 2008 4:58 PM
 

Thomas Holloway said:

Actually, you can load just about any random DLL. Check out my post about it on my blog, http://www.theadvents.com/?p=11

June 29, 2008 11:21 AM
 

Thomas Holloway said:

My question is, does Silverlight run in a single AppDomain? If that were true then a dll could be reused across several applications, which could reduce some overhead.

June 29, 2008 11:24 AM

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required
Submit

© 2010 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker