lass="language-xml">&lt;PropertyGroup&gt;
    &lt;TestsDir&gt;$(MSBuildProjectDirectory)/../MyApp.Tests&lt;/TestsDir&gt;
&lt;/PropertyGroup&gt;
&lt;Target Name=&quot;AppTasks&quot; AfterTargets=&quot;Build&quot; Condition=&quot;$(APP_TASKS) != ''&quot;&gt;
    &lt;CallTarget Targets=&quot;Prerender&quot; Condition=&quot;$(APP_TASKS.Contains('prerender'))&quot; /&gt;
&lt;/Target&gt;
&lt;Target Name=&quot;Prerender&quot;&gt;
    &lt;Exec Command=&quot;dotnet test --filter TestCategory=prerender --logge