Legacy Security Policy in Visual Studio 2010 and COM References
I have a project using DevExpress 8.3 (2008.3) which I just recently upgraded to use VS 2010. After doing so, everything compiled fine but I got errors trying to use the designer. I resolved this as described here: NetFx40_LegacySecurityPolicy in design-time mode by adding <NetFx40_LegacySecurityPolicy enabled="true"/> to my devenv.exe.config. Designer works fine now, but some of the projects in the solution which have COM references no longer compile, with the exception: The "ResolveComReference" task could not be instantiated from "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral