These DLLs are not added to my project in prior versions of Visual Studio. My guess is that one of my references has a dependency to these DLLs. From what I\'ve read, the hi
In my situation I found that toggling the Copy Local property of the assembly that depends on stdole.dll, saving the project and then toggling the property back to its original value, and finally saving the project again solved the problem. This property may also be related to the Embed Interop Types property for other people with this problem.
What this does is explicitly saves the Copy Local property to the .xxproj file. Otherwise, the state of this property is not in the project file and a default is assumed. I have no explanation why this works as the presence of the property in the project file does not change the displayed value in Visual Studio nor does it cause a change in the assembly actually being published or not. I also did not cause a change in these properties from their originally displayed values after toggling them back and forth.
I do note that even before I found the cure I saw that cleaning the project and rebuilding it did not cause stdole.dll to be copied to bin. It was only after publishing that stdole.dll showed up.