CmdHelper

CmdHelper provides some useful command line tools like:

  • Installing Assemblies with their PDBs in the Global Assembly Cache (GAC)
  • Removing all Assemblies from GAC that are from a specific vendor or that match a certain name pattern
  • Generating the WSDL from a web service assembly (without the need to start a web server for that)
Download: CmdHelper_1.2.zip (19 KB)
Operating system: Windows Vista or newer
License: Freeware
Also see: Version history

ConcatenateXml
Concatenates two or more XML files into one resulting XML file.

Example:
CmdHelper.exe ConcatenateXml c:\in1.xml c:\in2.xml c:\in3.xml /Out:c:\out.xml

GacInstall
Installs Assemblies in the GAC. If the assembly has a PDB file (in the same directory) it automatically installs that. This is a big advantage compared to gacutil, because it allows to display line numbers for assemblies in the GAC when generating a stack trace.

Examples:

  • Install a single Assembly in GAC: CmdHelper.exe GacInstall c:\assembly1.dll

  • Install all assemblies from a specific folder in the GAC: CmdHelper.exe GacInstall c:\temp\*.dll

  • If the same assembly is already installed in another version, remove it: CmdHelper.exe GacInstall c:\assembly1.dll /RemoveExisting

  • Install all assemblies from a specific folder + it’s subfolders in the GAC and if one of the assemblies already is installed in another version, remove it: CmdHelper.exe GacInstall /RemoveExisting /IncludeSubDirectories c:\temp\*.dll

GacRemove
Removes Assemblies from the GAC by specifying a specific filter criteria.

Examples:

  • Remove all assemblies of a specific vendor: CmdHelper.exe GacRemove /PublicKeyToken:ab12cd34ef56

  • Remove all assemblies the start with a specific name: CmdHelper.exe GacRemove /AssemblyName:YourCompany.ANamespace.*

  • Remove all assemblies of a specific vendor and with a specific version: CmdHelper.exe GacRemove /PublicKeyToken:ab12cd34ef56 /Version:1.0.0.0

GetWsdl
Generates the WSDL from a web service assembly (without hosting it in a web server).

Examples:

  • Generate the WSDL for all webservices within the assembly: CmdHelper.exe GetWsdl /AssemblyPath:c:\myWebApp\bin\myWebApp.dll /OutputDirectory:c:\output

  • Generate the WSDL for a specific webservice within the assembly: CmdHelper.exe GetWsdl /AssemblyPath:c:\myWebApp\bin\myWebApp.dll /OutputDirectory:c:\output /WebServiceName:WebService1

2 thoughts on “CmdHelper

  1. Pingback: Automatic updating web reference .NET - Offir Shvartz

  2. Pingback: Generate WSDL from command line | keyongtech

Comments are closed.