summaryrefslogtreecommitdiff
path: root/tests/override.targets
blob: a01163225f08a53810fb97faeb3237cb2492da7e (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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <!--
    Overrides for all other targets (including build tools) can go in this file.
  -->

  <!-- Contains overrides for the nuget reference resolution.  The regular nuget reference resolution will not 
       copy references local, which we need in order to correctly execute the xunit project -->
  <Import Project="xunitwrapper.targets" Condition="'$(IsXunitWrapperProject)'=='true'" />

  <!-- Override the AddDesignTimeFacadeReferences target to add the ability to reference System.Private.CoreLib.
       Some tests use functionality not available in the portable reference assemblies.
       For portability reasons it's generally a good idea to reference the facades instead of the 
       raw implementation assemblies.  However, these tests are useful. -->
  <Target Name="AddDesignTimeFacadeReferences"
      Condition="'$(ReferenceSystemPrivateCoreLib)' == 'true'"
      BeforeTargets="ResolveReferences"
      DependsOnTargets="GetReferenceAssemblyPaths"
  >

    <ItemGroup>
      <ReferencePath Include="$(ProjectDir)\..\bin\Product\$(BuildOS).$(BuildArch).$(BuildType)\System.Private.CoreLib.dll" />
    </ItemGroup>
  </Target>
</Project>