Setup External Tools Option in Visual Studio


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.


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

One thought on “Setup External Tools Option in Visual Studio

  1. Pingback: Setup External Tools Option in Visual Studio - My experiments with SharePoint, Azure and .NET using Visual Studio

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.