I today tried to use windows 8 and visual studio 2010 for our big project. I am getting an error from some projects stating the assembly System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a cannot be resolve "because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through ReflectionOnlyAssemblyResolve event." The error appears during compilation.
We do not directly reference this assembly in our project. It seems that maybe the Microsoft Enterprise Library (Version 5.0.414) uses this assembly. But why it is not there? I thought it is part of the .NET Framework.
The TargetFramework of the project is .NET 4.0
What can I do to solve this problem?