sample2.proj (9 lines of code) (raw):

<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="14.0" DefaultTargets="RunTests" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Target Name="RunTests"> <Exec IgnoreExitCode="True" Command="packages\NUnit.Console.3.0.0\tools\nunit3-console.exe Tests.dll --noresult --noheader --where cat=Sample2"> <Output TaskParameter="ExitCode" ItemName="exitCode" /> </Exec> <Error Text="Error while running tests" Condition="@(exitCode) &lt; 0" /> </Target> </Project>