k blog.kenaro.com
← All articles

Create tool for Visual Studio 2010 to extract the full qualified public assemby name with PowerShell

· Ingo Karstein

I created a simple tool extension for Visual Studio for extracting the full qualified name of an .NET assembly.

Like this: http://msdn.microsoft.com/en-us/library/ee539398.aspx but without a compiled application.

I used PowerShell for this.

HERE ARE THE STEPS:

  1. Got to Visual Studio 2010

  2. Open Menu “Tools”

  3. Open Dialog “External Tools”

  4. Click “Add” to add a new tool entry

  5. Specify “Full Assembly Name” as “Title”

  6. Enter “c:windowssystem32WindowsPowerShellv1.0powershell.exe” as “Command”

  7. Enter

    -command "&{[System.Reflection.AssemblyName]::GetAssemblyName('$(TargetPath)').FullName}"

    as “Arguments”

  8. Check “Use output window”

  9. Click “OK”

  10. You can use this tool if your output binary can be compiled(!)

Screenshots:

image

image

3 comments

Gil Roitto Jan 15, 2011
This was far more integrated and easier accessible than what I've been using before. Very nice!
Alex_BBB Apr 26, 2011
The best! Thanks!
ikarstein Apr 26, 2011
You're welcome! :-)

Leave a comment

Your comment is reviewed before it appears. Your name is shown with the comment; your email is required for moderation but never published.