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

src.builds « src - github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2dd3d7daa25b00d73a49f95ae68c221ebaca152f (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
49
50
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
  <ItemGroup>
    <Project Include="$(MSBuildThisFileDirectory)*/src/*.csproj" Exclude="@(ProjectExclusions)" />
    <Project Include="$(MSBuildThisFileDirectory)*/src/*.ilproj" Exclude="@(ProjectExclusions)" />
    <Project Include="$(MSBuildThisFileDirectory)*/src/*.vbproj" Exclude="@(ProjectExclusions)" />
  </ItemGroup>
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.traversal.targets))\dir.traversal.targets" />

  <UsingTask TaskName="GenerateDepsJson" AssemblyFile="$(BuildToolsTaskDir)CoreFx.Tools.dll"/>
  <UsingTask TaskName="GenerateBindingRedirect" AssemblyFile="$(BuildToolsTaskDir)CoreFx.Tools.dll"/>

  <PropertyGroup>
    <!-- TODO: We should see about generating this from scratch instead of relying on a previous deps file as a template -->
    <_ToolsDotNetCliSharedFxPath>$(ToolsDir)dotnetcli\shared\Microsoft.NETCore.App\1.1.0</_ToolsDotNetCliSharedFxPath>
    <_OriginalDepsJsonPath>$(_ToolsDotNetCliSharedFxPath)\Microsoft.NETCore.App.deps.json</_OriginalDepsJsonPath>
    <_OutputTestSharedFrameworkDepsPath>$(NETCoreAppTestSharedFrameworkPath)\Microsoft.NETCore.App.deps.json</_OutputTestSharedFrameworkDepsPath>
  </PropertyGroup>

  <!-- After we build all the source libraries we need to generate a deps.json file for the shared test framework -->
  <Target Name="GenerateTestSharedFrameworkDepsFile" AfterTargets="BuildAllProjects" Condition="'$(BinplaceTestSharedFramework)' == 'true'">

    <ItemGroup>
      <!-- This is for HostPolicy, CoreCLR and Jit dependencies to continue to remain inside of the dep.json -->
      <ExceptionForDepsJson Include="Microsoft.NETCore.DotNetHostPolicy" />
      <ExceptionForDepsJson Include="Microsoft.NETCore.DotNetHostResolver" />
      <ExceptionForDepsJson Include="Microsoft.NETCore.Runtime.CoreCLR" />
      <ExceptionForDepsJson Include="Microsoft.NETCore.Jit" />
    </ItemGroup>
    <GenerateDepsJson DepsJsonPath="$(_OriginalDepsJsonPath)"
                      RuntimeDirectory="$(NETCoreAppTestSharedFrameworkPath)"
                      DepsExceptions="@(ExceptionForDepsJson)"
                      OutputPath="$(_OutputTestSharedFrameworkDepsPath)"/>
  </Target>

  <Target Name="GenerateXUnitRunnerConfigFile" AfterTargets="BuildAllProjects" Condition="'$(TargetGroup)' == 'netfx'">

    <ItemGroup>
      <NetFXRuntimeAssemblies Include="$(RuntimePath)*.dll" />
      <XUnitConsoleRunnerExecutable Include="$(RuntimePath)xunit.console.exe" />
    </ItemGroup>

    <GenerateBindingRedirect  Assemblies="@(NetFXRuntimeAssemblies)" 
                              Executables="@(XUnitConsoleRunnerExecutable)"
                              OutputPath="$(RuntimePath)"
                              OutputCodeBase="True" />
  </Target>

</Project>