Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


CSharpTest.Net.Tools (moved from

Change Log

2014-03-23 Initial clone and extraction from existing library.

Online Help

Help on the command-line tools may be found at:

CmdTool help is located there at:

CmdTool configuration information can be found at:


CmdTool integration with visual studio is discussed at:

Quick start

From the tools/package directory run the following command from an elevated command prompt:

   C:\Projects\...> CmdTool.exe register

CmdTool supports Visual Studio 2008, 2010, 2012, and 2013

A sample configuration (CmdTool.config) is located in the content folder of the package (and should be copied to your project). This file can be placed anywhere in the path above the file being generated. Run the following command to generate a sample configuration:

   C:\Projects\...> CmdTool.exe help-config

Right-click the desired source file. Select the "Properties" menu option. Under the entry called "Custom Tool" enter the value "CmdTool".

You can also re-run code generation tools for an entire project by using the following command line:

   C:\Projects\...> CmdTool.exe build *.csproj

Configuration Example

The following is a simple example of a configuration to run cmd.exe and prepend some text to the input file. The input file must be a .test file, and the configuration file must be named CmdTool.config and located in the same directory or any direct ancestor.

  <match filespec="*.test">
    <generator debug="false" input-encoding="ascii" output-encoding="utf-8">
      <execute exe="%SystemRoot%\system32\Cmd.exe"/>
      <arg value="/c"/>
      <arg value="@Echo // Generated from input: $(inputPath) &amp;&amp; type $(InputPath)"/>
      <std-output extension=".Generated.cs"/>


CSharpTest.Net.Tools (moved from



You can’t perform that action at this time.