VSSDK 2008/2010/2012 DTE.Events subscription problem (reproduceable) - by Dessus

Status : 


Sign in
to vote
ID 775900 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 1/6/2013 12:14:06 AM
Access Restriction Public


Boxing and unboxing the DTE object doesn't allow event subscriptions to work in the VSSDK all the way back to vs2005 and up to vs 2012.

See my post here: 





Sign in to post a comment.
Posted by Dessus on 7/6/2013 at 4:15 PM
I believe this might have been caused by the fact that I had Embed Interop Types enabled as detailed by another user here: http://social.msdn.microsoft.com/Forums/vstudio/en-US/0b73b5a6-ed9b-40df-aadc-d1d5e3ed39f4/embed-interop-types in a dll (other than my plugin dll) I have that has reference to the VSSDK. This caused issues when passing the COM objects around. I suspect it was not referencing the same instances and this threw the eventing model, and later caused issues with Ninject (dependency Injection) for me. Possibly this is more of a usability bug, as it took me many months to track down the root cause.
Posted by Microsoft on 2/5/2013 at 10:53 AM
Hi Dessus, I haven't heard back on this so I'm going to go ahead and close it. Please reactivate as necessary.

Thanks, Tony Goodhew, Program Manager, VS Pro
Posted by Microsoft on 1/29/2013 at 10:34 AM
Hi Dessus, We are unable to repro this issue. Can you provide us with a small project that consistently reproduces the issue.

Thanks, Tony Goodhew, Program Manager, VS Pro
Posted by Microsoft on 1/8/2013 at 12:22 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 1/6/2013 at 12:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)