views:

18

answers:

1

I've written a Visual Studio 2010 extension. It's a VS Package (in a .VSIX) file. It's got a toolbar, which has a single button on it.

The button is never enabled. I've looked at the MenuAndCommands VS SDK example and, as far as I can tell, I'm not doing anything different.

What have I done wrong?

+1  A: 

Seems to work now: could be one of two things:

  1. I didn't put the package GUID on the <Commands> node in the .VSCT file.
  2. It appears that the .VSCT file is not always built when it should be. A rebuild all later, and it appears to be working...
Roger Lipscombe
I find whenever I touch the .vsct I need to rebuild the whole solution. Just F5 doesn't cut it.
Kate Gregory