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

Mono.Linker.Tests.csproj « Mono.Linker.Tests « test « illink « tools « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 493fb45e45d6fa121ee375592577fa30ac225b2b (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  </PropertyGroup>

  <PropertyGroup>
    <DefineConstants Condition="'$(Configuration)' == 'Debug'">$(DefineConstants);DEBUG</DefineConstants>
  </PropertyGroup>

  <ItemGroup>
    <!-- Used in testcase to check the cecil package version. -->
    <AssemblyAttribute Include="System.Reflection.AssemblyMetadata">
      <_Parameter1>CecilPackageVersion</_Parameter1>
      <_Parameter2>$(MicrosoftDotNetCecilVersion)</_Parameter2>
    </AssemblyAttribute>
  </ItemGroup>

  <ItemGroup>
    <Folder Include="Properties\" />
    <Folder Include="TestCasesRunner\" />
    <Folder Include="Extensions\" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.DotNet.Cecil" Version="$(MicrosoftDotNetCecilVersion)" PrivateAssets="All" Publish="True" />
    <PackageReference Include="Microsoft.DotNet.Cecil.Pdb" Version="$(MicrosoftDotNetCecilPdbVersion)" PrivateAssets="All" Publish="True" />
    <ProjectReference Include="..\..\src\linker\Mono.Linker.csproj" />
    <ProjectReference Include="..\Mono.Linker.Tests.Cases\Mono.Linker.Tests.Cases.csproj" />
    <ProjectReference Include="..\Mono.Linker.Tests.Cases.Expectations\Mono.Linker.Tests.Cases.Expectations.csproj" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="$(MicrosoftCodeAnalysisVersion)" />
    <ProjectReference Include="$(RepoRoot)\src\coreclr\tools\ILVerification\ILVerification.csproj" />
    <PackageReference Include="nunit" Version="3.12.0" />
    <PackageReference Include="NUnit3TestAdapter" Version="4.1.0" />
    <!-- This reference is purely so that the linker can resolve this
         dependency of mscorlib. It is not actually required to build
         the tests. -->
    <PackageReference Include="System.Threading.AccessControl" Version="5.0.0" />
  </ItemGroup>

  <Target Name="PrepareTools" BeforeTargets="Build">
    <!-- Restore ilasm using ilasm.ilproj. Restore must be done
         separately from copy with a different set of input
         properties, to force MSBuild to re-evaluate using new props
         and targets from the restored package. -->
    <PropertyGroup>
      <IlasmProject>$(MSBuildThisFileDirectory)../../eng/ilasm.ilproj</IlasmProject>
    </PropertyGroup>

    <MSBuild Projects="$(IlasmProject)" Targets="Restore" />
    <MSBuild Projects="$(IlasmProject)" Targets="CopyILAsmTool" />
  </Target>

  <ItemGroup>
    <None Update="TestCases\Dependencies\PInvokesExpectations.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>

    <RuntimeHostConfigurationOption Include="Mono.Linker.Tests.RepoRoot">
      <Value>$(RepoRoot)</Value>
    </RuntimeHostConfigurationOption>
    <RuntimeHostConfigurationOption Include="Mono.Linker.Tests.Configuration">
      <Value>$(Configuration)</Value>
    </RuntimeHostConfigurationOption>
    <RuntimeHostConfigurationOption Include="Mono.Linker.Tests.ArtifactsDir">
      <Value>$(ArtifactsDir)</Value>
    </RuntimeHostConfigurationOption>
    <RuntimeHostConfigurationOption Include="Mono.Linker.Tests.ArtifactsBinDir">
      <Value>$(ArtifactsBinDir)</Value>
    </RuntimeHostConfigurationOption>
    <RuntimeHostConfigurationOption Include="Mono.Linker.Tests.LinkerTestDir">
      <Value>$(LinkerTestDir)</Value>
    </RuntimeHostConfigurationOption>
    <RuntimeHostConfigurationOption Include="Mono.Linker.Tests.TargetArchitecture">
      <Value>$(TargetArchitecture)</Value>
    </RuntimeHostConfigurationOption>
  </ItemGroup>

</Project>