I picked up this trick from one of the msdn blog and I have found it useful on many occasions so I thought that I would share it.
In Visual Studio, go to the Tools menu and click the External Tools menu item. This will bring up the External Tools dialog. The image below shows the information that I have added to add a new menu item called ‘Get SN Public Token’.
The command is the path to sn.exe which can be in different places depending on your VS version. The easiest way to find it is to open a VS Command Prompt and type “where sn.exe”.
The arguments field is set to -T and then the $(TargetPath) variable. The “Use Output Window” option is checked so that the results will be shown in the VS output window. After clicking OK, this will be enabled as a menu item as shown below.
The output for this command will be displayed in the output window. This also works if you have multiple projects in the same solution. Just highlight the project in Solution Explorer and then click the menu item.Happy Coding>;-)