<?xml version="1.0" encoding="utf-8"?> <Project DefaultTarget="RunTest" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <!-- workaround for https://github.com/Microsoft/msbuild/issues/885 --> <!-- renaming the property because the original property is a global property and therefore cannot be redefined at runtime. --> <PropertyGroup> <CLIBuildDllPath>$([MSBuild]::Unescape($(CLIBuildDll)))</CLIBuildDllPath> </PropertyGroup> <UsingTask TaskName="DotNetTest" AssemblyFile="$(CLIBuildDllPath)" /> <Target Name="RunTest"> <ItemGroup> <EnvironmentVariables Include="TEST_ARTIFACTS=$(TestArtifactsDir)" /> <EnvironmentVariables Include="TEST_PACKAGES=$(TestPackagesDir)" /> <EnvironmentVariables Include="PreviousStageProps=$(PreviousStageProps)" /> </ItemGroup> <DotNetTest EnvironmentVariables="@(EnvironmentVariables)" ToolPath="$(ToolPath)" Configuration="$(Configuration)" NoBuild="True" Logger="trx" ProjectPath="$(TestProject)" /> </Target> </Project>