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.zip (Version 1.1.0.0, 16 KB)
Freeware
Requires .NET 2.0
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 GacInstallc:\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 /IncludeSubDirectoriesc:\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