1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
3 <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
5 <!-- Given that xunit packages bring with them part of the framework, we need to specify a runtime in order to get the assets
6 This RID value doesn't really matter, since the assets we are copying are not RID specific, so defaulting to Windows here
8 <ProjectJson>$(MSBuildThisFileDirectory)project.json</ProjectJson>
9 <ProjectLockJson>$(MSBuildThisFileDirectory)project.lock.json</ProjectLockJson>
10 <Language>C#</Language>
11 <NugetTargetMoniker>.NETCoreApp,Version=v1.1</NugetTargetMoniker>
12 <NugetRuntimeIdentifier>win7-x64</NugetRuntimeIdentifier>
13 <OutputPath>$(TargetingPackPath)</OutputPath>
14 <XUnitRunnerPackageId Condition="'$(TargetGroup)' != 'netfx'">xunit.console.netcore</XUnitRunnerPackageId>
15 <XUnitRunnerPackageId Condition="'$(TargetGroup)' == 'netfx'">xunit.runner.console</XUnitRunnerPackageId>
16 <CLRTestKind>SharedLibrary</CLRTestKind>
19 <None Include="project.json" />
22 <PackageToInclude Include="xunit.abstractions"/>
23 <PackageToInclude Include="xunit.assert"/>
24 <PackageToInclude Include="xunit.extensibility.core"/>
25 <PackageToInclude Include="xunit.extensibility.execution"/>
26 <PackageToInclude Include="xunit.runner.utility"/>
27 <PackageToInclude Include="Microsoft.DotNet.xunit.performance"/>
28 <PackageToInclude Include="Microsoft.DotNet.xunit.performance.analysis"/>
29 <PackageToInclude Include="Microsoft.DotNet.xunit.performance.runner.Windows"/>
30 <PackageToInclude Include="xunit.performance.api"/>
31 <PackageToInclude Include="xunit.performance.core"/>
32 <PackageToInclude Include="xunit.performance.execution"/>
33 <PackageToInclude Include="xunit.performance.metrics"/>
34 <PackageToInclude Include="Microsoft.Diagnostics.Tracing.TraceEvent"/>
35 <PackageToInclude Include="Newtonsoft.Json"/>
36 <PackageToInclude Include="Microsoft.CodeAnalysis.Analyzers"/>
37 <PackageToInclude Include="Microsoft.CodeAnalysis.Common"/>
38 <PackageToInclude Include="Microsoft.CodeAnalysis.Compilers"/>
39 <PackageToInclude Include="Microsoft.CodeAnalysis.CSharp"/>
40 <PackageToInclude Include="Microsoft.CodeAnalysis.VisualBasic"/>
41 <PackageToInclude Include="$(XUnitRunnerPackageId)" />
44 <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
46 <Target Name="AddXunitConsoleRunner" BeforeTargets="ResolveReferences" Condition="'$(TargetGroup)' == 'netfx'">
47 <Error Condition="!Exists('$(PackagesDir)$(XUnitRunnerPackageId)\$(XUnitPackageVersion)\tools\xunit.console.exe')"
48 Text="Error: looks the package $(PackagesDir)$(XUnitRunnerPackageId)\$(XUnitPackageVersion) not restored or missing xunit.console.exe."
51 <ReferenceCopyLocalPaths
52 Include="$(PackagesDir)$(XUnitRunnerPackageId)\$(XUnitPackageVersion)\tools\*.*"
53 Exclude="$(PackagesDir)$(XUnitRunnerPackageId)\$(XUnitPackageVersion)\tools\xunit.console.exe.config"
55 <Private>false</Private>
56 <NuGetPackageId>$(XUnitRunnerPackageId)</NuGetPackageId>
57 <NuGetPackageVersion>$(XUnitPackageVersion)</NuGetPackageVersion>
58 </ReferenceCopyLocalPaths>