I know from this post:
Can't Silence Embed Interop Warnings
that ActiveX objects cannot officially have their types embedded in a .NET assembly, and I think I am running into this as an error with OLE Interop mentioned in the title.
Strangely, I am able to occasionally compile the VB.NET project with embedded types from this library: "Microsoft.VisualStudio.OLE.Interop.dll" in VS2010 by toggling "Embed Interop Types" on and then off in the Solution explorer for it. This will squash the error sometimes and allow me to compile, and the resulting library works just fine. When reloading the project again, the error will reappear though. I can repeat the toggle to squash the error again.
I am wondering: is there a feature to consistently suppress this "Cannot embed interop types from assembly..." error in VS2010 for ActiveX components or am I running into a bug in VS2010? It would be a boon for deployment to be able to distribute one file instead of two.