How do I change icon on a Visual Studio Integration Package (VSPackage)?

1.1k Views Asked by At

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?

1

There are 1 best solutions below

0
On

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.