visual studio 2010 - How to add context menu entries in website projects? -


i'm not able add context menu entries website project items.

how reproduce problem:

  1. create vs package project
  2. go vsct file , replace groups section with:

    <group guid="guidvspackage1cmdset" id="mymenugroup" priority="0x0600">    <parent guid="guidshlmainmenu" id="idm_vs_menu_tools"/> </group>  <group guid="guidvspackage1cmdset" id="mymenugroup" priority="0x0600">    <parent guid="guidshlmainmenu" id="idm_vs_ctxt_projnode"/> </group>  <group guid="guidvspackage1cmdset" id="mymenugroup" priority="0x0600">    <parent guid="guidshlmainmenu" id="idm_vs_ctxt_itemnode"/> </group>  <group guid="guidvspackage1cmdset" id="mymenugroup" priority="0x0600">    <parent guid="guidshlmainmenu" id="idm_vs_ctxt_foldernode"/> </group>  <group guid="guidvspackage1cmdset" id="mymenugroup" priority="0x0600">    <parent guid="guidshlmainmenu" id="idm_vs_ctxt_solnnode"/> </group> 
  3. debug package , see: add entry solution, project , project items in simple c# project. when create asp.net website project (file->new->website) won't these entries except solution item.

i'm sure must possible due fact, nuget has entry website project item. unfortunately, not able extract piece of code nuget source code.

after while found solution: (i accidentally looked stylecop source code :p)

<group guid="guidvspackage1cmdset" id="mymenugroup" priority="0x0050">   <parent guid="guidshlmainmenu" id="idm_vs_ctxt_webfolder"/> </group>  <group guid="guidvspackage1cmdset" id="mymenugroup" priority="0x0050">   <parent guid="guidshlmainmenu" id="idm_vs_ctxt_webitemnode"/> </group>  <group guid="guidvspackage1cmdset" id="mymenugroup" priority="0x0050">   <parent guid="guidshlmainmenu" id="idm_vs_ctxt_webproject"/> </group> 

these not documented on msdn.

anyway, i'm curious how nuget it, because have nothing in vsct file, entry in context menu.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -