2

So I have a standard Visual Studio Integration Package that I created using the VS2010 Visual Studio Integration Wizard that pretty much has the following code and I am trying to figure out how to change the icon in the Tools menu for my project:

<PackageRegistration(UseManagedResourcesOnly:=True), _
InstalledProductRegistration("#110", "#112", "1.0", IconResourceID:=400), _
ProvideMenuResource("Menus.ctmenu", 1), _
Guid(GuidList.guidDALDesigner_VSPackPkgString)> _
Public NotInheritable Class DALDesigner_VSPackPackage
    Inherits Package
...

I keep seeing the icon for "1" next to my menu item. How do I change the icon to one that I want?

dav_i
  • 27,509
  • 17
  • 104
  • 136
Denis
  • 11,796
  • 16
  • 88
  • 150
  • @Omribitan - of course and FYI, this is VSPackage, not a Visual Studio AddIn – Denis Sep 12 '13 at 21:52
  • hmmm ... what about the 'change icon' button in page 2 of the wizard? taken from : http://msdn.microsoft.com/en-us/library/vstudio/cc138589(v=vs.100).aspx – Omri Btian Sep 12 '13 at 22:00
  • @Omribitan - yeah, I was thinking the same but I don't know how to get the wizard back since I already have the project :-) It must be in the XML file or code somewhere... Just don't know where... – Denis Sep 12 '13 at 22:10
  • Try creating a new VSPackage project, change the icon in the wizard, then compare the generated code/xml. Sorry I'm just tossing ideas without posting code or example. I've never worked with VSPackage just tryin' to help :) – Omri Btian Sep 12 '13 at 22:17
  • @Omribitan - appreciate it. I'll try. – Denis Sep 13 '13 at 14:09
  • didn't work, that was the image for the icon of the application – Denis Oct 01 '13 at 20:59

1 Answers1

0

That's set in the .vsct file. See for example how can i add a new icon to a Visual Studio 2010 extension?

I think VS does some caching behind the scenes though and your modified icons might not get picked up immediately. The experimental instance didn't have that "problem" in my tests.

Community
  • 1
  • 1
Trass3r
  • 5,858
  • 2
  • 30
  • 45