Getting the 4-part name for an assembly

I stumbled upon this the other day. An easy way to get the 4-part name for an assembly is add an external tool to Visual Studio:

1. Open Tools > External Tools
2. Click Add
3. For the Title, enter &Get 4-Part Name (The & established the G as the hotkey)
4. For the Command, enter powershell.exe
5. For the Arguments, enter “[System.Reflection.AssemblyName]::GetAssemblyName(\”$(TargetPath)\”).FullName”
6. Check the box Use Output Directory
7. Click Ok
8. Build the Solution
9. Open Tools > External Tools
10. Click Get 4-Part Name
11. Your 4-Part assembly name should appear in the output box

Leave a Reply

Your email address will not be published. Required fields are marked *

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

%d bloggers like this: