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


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:\windows\system32\WindowsPowerShell\v1.0\powershell.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

Advertisements

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

  1. This was far more integrated and easier accessible than what I’ve been using before. Very nice!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s