Welcome to mirror list, hosted at ThFree Co, Russian Federation.

XUnit.Runtime.depproj « test-runtime « external - github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 309346f518ef947c60213b33e825bf7e158ca48c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
  <PropertyGroup>
    <!-- Given that xunit packages bring with them part of the framework, we need to specify a runtime in order to get the assets
         This RID value doesn't really matter, since the assets we are copying are not RID specific, so defaulting to Windows here
    -->
    <NugetRuntimeIdentifier>win7-x64</NugetRuntimeIdentifier>
    <OutputPath>$(RuntimePath)</OutputPath>
    <XUnitConsoleRunnerVersion>2.2.0-beta2-build3300</XUnitConsoleRunnerVersion>
  </PropertyGroup>
  <ItemGroup>
    <None Include="project.json" />
  </ItemGroup>
  <ItemGroup>
    <PackageToInclude Include="xunit.abstractions"/>
    <PackageToInclude Include="xunit.assert"/>
    <PackageToInclude Include="xunit.extensibility.core"/>
    <PackageToInclude Include="xunit.extensibility.execution"/>
    <PackageToInclude Include="xunit.runner.utility"/>
    <PackageToInclude Include="Microsoft.xunit.netcore.extensions"/>
    <PackageToInclude Include="Microsoft.DotNet.xunit.performance.run.core"/>
    <PackageToInclude Include="Newtonsoft.Json"/>
  </ItemGroup>

  <ItemGroup Condition="'$(TargetGroup)' != 'netfx'">
    <PackageToInclude Include="xunit.console.netcore"/>
  </ItemGroup>

  <ItemGroup Condition="'$(TargetGroup)' == 'netfx'">
    <PackageToInclude Include="xunit.runner.console"/>
  </ItemGroup>

  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />

  <Target Name="AddXunitConsoleRunner" BeforeTargets="ResolveReferences" Condition="'$(TargetGroup)' == 'netfx'">
    <Error Condition="!Exists('$(PackagesDir)xunit.runner.console\$(XUnitConsoleRunnerVersion)\tools\xunit.console.exe')"
            Text="Error: looks the package $(PackagesDir)xunit.runner.console\$(XUnitConsoleRunnerVersion) not restored or missing xunit.console.exe."
    />
    <ItemGroup>
      <ReferenceCopyLocalPaths Include="$(PackagesDir)xunit.runner.console\$(XUnitConsoleRunnerVersion)\tools\*.*">
        <Private>false</Private>
        <NuGetPackageId>xunit.runner.console</NuGetPackageId>
        <NuGetPackageVersion>$(XUnitConsoleRunnerVersion)</NuGetPackageVersion>
      </ReferenceCopyLocalPaths>
    </ItemGroup>
  </Target>
</Project>