title: How to add commands dynamically in VSPackage (Visual Studio 2013 Package)
body: <p>I developed an Addin for VS2012, it is displayed in the code window (editor's) context menu. There's a menu which has a sub-menu. Sub-menu items are added dynamically, for instance..</p>
  
  <pre><code> Cut
   Copy
   Paste
     .
     .
     .
   My Menu &gt;  sub menu item 1
              sub menu item 2
              sub menu item 3
  </code></pre>
  
  <p>Now for Visual Studio 2013 I need to convert (almost re-write) the addin as VSPackage. </p>
  
  <p>I am able to create a command, but I cannot add commands dynamically as sub menu items.</p>
  
  <p>Please download the source code (VSPackage for VS2013) from: <a href="http://sdrv.ms/INbIu2" rel="nofollow">http://sdrv.ms/INbIu2</a></p>
  
  <p>Question</p>
  
  <p>How can I make a menu and dynamic sub menu in VSPackage?</p>
  
  <p>I would really appreciate any example.</p>
  
  <p>Thanks a lot!</p>