Instrument the inputDirectory, rather than the outputDirectory (e.g. for dotnet test)
dotnet test
public SwitchParameter InPlace { get; set; }