Using CciSharp in the Build

CciSharp integrates in the build through custom MSBuild targets. The targets call into the ccs.exe command line tool at the right place in the build process to rewrite the assemblies produce by the C# or VisualBasic.NET compiler.

Download and place CciSharp

Download the latest binaries from CciSharp. CciSharp is xcopy-deployable, simply drop them in a place that will be convinient to use from your build. Usually, you will want to check those binaries in your source control as well.

Editing your projects

  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <!-- begin CciSharp -->
  <Import Project="CciSharp.targets" />
  <!-- end CciSharp -->
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    ...
    <CcsRewriting>True</CcsRewriting>
  </PropertyGroup>

Selecting the mutators

The msbuild tasks will look for assemblies containing mutators in default location. By convention, such assemblies must be named CciSharp.YouNameHere.dll.

If this behavior is not enough, one can provide the location of mutator assemblies by including them into the CcsMutatorAssemblies item.
  <CcsMutatorAssemblies Include=" path to your mutators " />