Home Dashboard Directory Help
Search

Make EnvDTE80.Commands.AddNamedCommand2 to search for custom pictures in the own add-in dll by Carlos J. Quintero


Status: 

Closed
 as Fixed Help for as Fixed


2
0
Sign in
to vote
Type: Suggestion
ID: 467535
Opened: 6/16/2009 7:08:24 AM
Access Restriction: Public
0
Workaround(s)
view

Description

When you want to use custom pictures for commands using the EnvDTE80.Commands.AddNamedCommand method, you are forced to create a satellite DLL following the infamous procedure explained at MSDN:

How to: Display a Custom Icon on the Add-in Button
http://msdn.microsoft.com/en-us/library/ms228771.aspx

It should be better if the add-in looked for custom pictures in the resources of the own add-in dll and only if not found, try in satellite DLLs.

To force to create satellite dlls only to supply bitmaps may be something natural within Microsoft, but for everyone else is painful and error prone: you need to take into account locales ("en" or "en-US" or something else?), versions, assembly names, folder names, setup, etc.
Details
Sign in to post a comment.
Posted by Microsoft on 9/4/2009 at 11:51 AM
Hello Carlos,

I should have closed this one as a duplicate of Connect bug 336868 a while back, since we’ve being primarily tracking your request through that bug. (https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=336868&wa=wsignin1.0) For anyone else interested in the results of this request, please refer to that bug. (A change is being made in Visual Studio 2010 to search the add-in DLL after the satellite DLL.)

Cheers,
Suzanne Hansen, Program Manager, Visual Studio Platform Shell Team
Posted by Microsoft on 6/25/2009 at 12:35 PM
Hello CarlosQ,

Thanks for sending along your feedback on the EnvDTE80.Commands.AddNamedCommand method and the use custom pictures for commands.

I’ll talk to a developer on the team about your suggestion for the add-in to look for custom pictures in the resources of its own add-in dll and only if not found, try in satellite DLLs. At this time we’re focusing on bug fixes for VS 2010, so I want to make sure I have a better understanding of your suggestion and the implications of implementing this.

Thank you,
Suzanne Hansen, Program Manager, Visual Studio Platform Shell Team
Posted by Microsoft on 6/17/2009 at 2:59 AM
Thank you for your feedback, we are currently reviewing the feedback you have submitted.
Sign in to post a workaround.