In a previous post I explained how setup AutoFixture.NUnit2 to work with a few 3rd party applications, to complete the AutoFixture.NUnit2 story we need to be able to configure Teamcity for Continuous integration according to TeamCity documentations there are a few ways to do this, but only way I have been successful so far was to configure msbuild script to run nunit-console.exe

Example of msbuild script to copy Teamcity NUnit Addin and AutoFixture.NUnit2.Addins.dll

<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="" DefaultTargets="CompleteBuild" ToolsVersion="4.0">

        <NUnitAddinFiles Include="$(teamcity_dotnet_nunitaddin)-2.6.2.*" />
        <NUnitAddinFiles Include="packages\AutoFixture.NUnit2.3.9.0\lib\net40\Ploeh.AutoFixture.NUnit2.Addins.dll" />

    <Target Name="RunTests">
        <MakeDir Directories="$(NUnitHome)\addins" />
    <Copy SourceFiles="@(NUnitAddinFiles)" DestinationFolder="$(NUnitHome)\addins" />
    <Exec Command="$(NUnitHome)\nunit-console.exe $(TestAssembly)" />

    <Target Name="CompleteBuild" DependsOnTargets="RunTests" />