Skip to content

Commit 58acf64

Browse files
authored
Fix for Step 2 of the Add a Command section
(int)TestCommandPackageGuids.cmdidTestSubCmd in the second steps first line of code should just be cmdidTestSubCmd otherwise it can't compile. It now matches the changed code in Step 3.
1 parent 3f262c5 commit 58acf64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/extensibility/adding-a-submenu-to-a-menu.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ This walkthrough builds on the demonstration in [Adding a Menu to the Visual Stu
9393
2. Add the sub-command. Find the command constructor. Add the following lines just after the call to the `AddCommand` method.
9494

9595
```csharp
96-
CommandID subCommandID = new CommandID(CommandSet, (int)TestCommandPackageGuids.cmdidTestSubCmd);
96+
CommandID subCommandID = new CommandID(CommandSet, cmdidTestSubCmd);
9797
MenuCommand subItem = new MenuCommand(
9898
new EventHandler(SubItemCallback), subCommandID);
9999
commandService.AddCommand(subItem);
@@ -157,4 +157,4 @@ This walkthrough builds on the demonstration in [Adding a Menu to the Visual Stu
157157

158158
## See Also
159159
[Adding a Menu to the Visual Studio Menu Bar](../extensibility/adding-a-menu-to-the-visual-studio-menu-bar.md)
160-
[Commands, Menus, and Toolbars](../extensibility/internals/commands-menus-and-toolbars.md)
160+
[Commands, Menus, and Toolbars](../extensibility/internals/commands-menus-and-toolbars.md)

0 commit comments

Comments
 (0)