title: Visual Studio build problem with "ReflectionOnlyAssemblyResolve event"
body: <p>I have a Visual Studio 2010 project that is targeted to .NET Framework 3.5. The project builds fine from Visual Studio, but when I try to compile it from the command line or from TeamCity I get the following build error:</p>
  
  <blockquote>
    <p>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFX.targets(269,9): error MC1000: Unknown build error, 'Cannot resolve dependency to assembly 'Microsoft.Windows.Design.Extensibility, Version=4.0.0.0, Culture=neutral, PublicKey
    Token=b03f5f7f11d50a3a' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.'  [C:\Work\MyProject\MyProject.sln]</p>
  </blockquote>
  
  <p>The linker seems to complain about <code>Microsoft.Windows.Design.Extensibility.dll</code>, but the project does not depend on this library.</p>