Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy background agent loads redundant assemblies?
    primarykey
    data
    text
    <p>I'm developing an app for Windows Phone. This app uses background agent (scheduled task) for updating information on tiles pinned to the start screen.</p> <p>I have 4 projects which produce 4 assemblies:</p> <ul> <li>MyApp - Main project with UI logic</li> <li>MyApp.Core - Main logic of the app</li> <li>MyApp.Core.Agent - Stripped-down version of MyApp.Core for the background agent</li> <li>MyApp.Agent - Background agent</li> </ul> <p>This is a part of agent's log which contains list of assemblies loaded by the agent:</p> <pre><code>Zlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null MyApp.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null MyApp.Core.Agent, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null MyApp.Agent, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null MyApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null System.Runtime.Serialization, Version=3.7.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC Microsoft.Phone.Interop, Version=7.0.0.0, Culture=neutral, PublicKeyToken=24EEC0D8C86CDA1E Microsoft.Phone, Version=7.0.0.0, Culture=neutral, PublicKeyToken=24EEC0D8C86CDA1E System.Core, Version=3.7.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC System.Xml, Version=3.7.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC System.Net, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7CEC85D7BEA7798E System, Version=3.7.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7CEC85D7BEA7798E System.Windows.RuntimeHost, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7CEC85D7BEA7798E mscorlib, Version=3.7.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC </code></pre> <p>MyApp.Agent has reference only on MyApp.Core.Agent, which has no references on other projects. But as you can see MyApp and MyApp.Core are also loaded when the background agent starts. Why that happens? I can't understand. MyApp and MyApp.Core assemblies do nothing but reduce valuable memory space.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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