I have a visual studio 2010 project that is trageted to .Net Framework 3.5. The project build fine from the Visual Studio but when I try to compile it from command line or from TeamCity I get the following build error:
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]
The builder seems to complain about Microsoft.Windows.Design.Extensibility.dll but The project do not depend on this library.