fe4e7e920e
Added xunit.runners 1.9.2 as a dependency of the unit test project, instead invoking it directly in CI.proj. Hopefully this will fix the issues where the TeamCity CI-build fails to restore packages.
20 lines
734 B
XML
20 lines
734 B
XML
<?xml version="1.0"?>
|
|
<Project ToolsVersion="4.0" DefaultTargets="CI" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<PropertyGroup>
|
|
<SolutionDir>./</SolutionDir>
|
|
<RequireRestoreConsent>false</RequireRestoreConsent>
|
|
</PropertyGroup>
|
|
<Target Name="CI" DependsOnTargets="Build; RunTests" />
|
|
|
|
<Target Name="Build">
|
|
<MSBuild Projects="GitTfs.sln" Properties="Configuration=Debug;Platform=Any CPU;RequireRestoreConsent=false" Targets="GitTfsTest" />
|
|
</Target>
|
|
|
|
<UsingTask AssemblyFile="packages/xunit.runners.1.9.2/tools/xunit.runner.msbuild.dll" TaskName="Xunit.Runner.MSBuild.xunit" />
|
|
<Target Name="RunTests">
|
|
<xunit Assembly="GitTfsTest/bin/Debug/GitTfsTest.dll" />
|
|
</Target>
|
|
|
|
</Project>
|