Setup External Tools Option in Visual Studio

Scenario

I’m more into SharePoint development these days, especially the development of custom web parts. I felt like I need to remember quite a bit of command line tools for SharePoint development, especially sn.exe which is more commonly used in web part development. I was looking for an option in Visual Studio to do this job.

Solution

After a bit of search I’ve found that this can be achieved by leveraging External Tools option in Visual Studio

In Visual Studio 2005 –> Tools —–> External Tools

Click Add button

External Tools

Enter the Title ‘Fetch Public Key’

Under Command, choose the sn.exe from C:Program FilesMicrosoft Visual Studio 8SDKv2.0Bin

External Tools2

In the Arguments set the value as -Tp “$(TargetPath)”  T – retrieves the public key token of the assembly,                           p – Blob of the public key                          $(TargetPath) – location where the VS.NET created the assemblySelect ‘Use Output Window’ optionClick Ok and Apply.Now, we can fetch the public key of the project (assembly)

Fetch Public Key

 Subscribe to my post