The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Output an Assembly Version/Fully Qualified Name from the CommandLine

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Scott Hanselman

Posts: 1031
Nickname: glucopilot
Registered: Aug, 2003

Scott Hanselman is the Chief Architect at Corillian Corporation and the Microsoft RD for Oregon.
Output an Assembly Version/Fully Qualified Name from the CommandLine Posted: Sep 10, 2004 3:23 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Scott Hanselman.
Original Post: Output an Assembly Version/Fully Qualified Name from the CommandLine
Feed Title: Scott Hanselman's ComputerZen.com
Feed URL: http://radio-weblogs.com/0106747/rss.xml
Feed Description: Scott Hanselman's ComputerZen.com is a .NET/WebServices/XML Weblog. I offer details of obscurities (internals of ASP.NET, WebServices, XML, etc) and best practices from real world scenarios.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Scott Hanselman
Latest Posts From Scott Hanselman's ComputerZen.com

Advertisement

In the vein of incredibly easy 1 or 2-lines of code, here's another that's too embarassingly easy program to mention considering I asked for help to write it! :)  It IS useful I think though. (Unless there was something included with the Framework that I missed!)

public class AssemblyVersion
{
    public static void Main(string[] args)
    {
        Assembly asm = Assembly.LoadFrom(args[0]);
        Console.WriteLine(asm.FullName.ToString());
    }
}

This will print out the assembly qualified name of any .NET assembly ala:

c:\>assemblyversion.exe clipboard.exe
clipboard, Version=1.2.3.4, Culture=neutral, PublicKeyToken=null

This can be useful for auditing and creating manifests/lists of assemblies that are included with a distribution.  We'll probably put it in a NAnt task to make a list of what's supposed to be there versus what IS there.

Read: Output an Assembly Version/Fully Qualified Name from the CommandLine

Topic: See you at the .Net on the beach convention Previous Topic   Next Topic Topic: Agile Project Management: Explore phase

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use