[英]How do I change icon on a Visual Studio Integration Package (VSPackage)?
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: 因此,我有一个使用VS2010 Visual Studio集成向导创建的标准Visual Studio集成程序包,该程序包几乎包含以下代码,并且我试图找出如何更改项目的“工具”菜单中的图标:
<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. 我一直在菜单项旁边看到“ 1”的图标。 How do I change the icon to one that I want? 如何将图标更改为所需的图标?
That's set in the .vsct file. 这是在.vsct文件中设置的。 See for example how can i add a new icon to a Visual Studio 2010 extension? 例如,请参阅如何将新图标添加到Visual Studio 2010扩展?
I think VS does some caching behind the scenes though and your modified icons might not get picked up immediately. 我认为VS会在后台进行一些缓存,并且您修改后的图标可能不会立即被拾取。 The experimental instance didn't have that "problem" in my tests. 实验实例在我的测试中没有那个“问题”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.