-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
27 lines (23 loc) · 1.48 KB
/
Copy pathDirectory.Build.targets
File metadata and controls
27 lines (23 loc) · 1.48 KB
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
<Project>
<!-- Settings that can only be decided AFTER a project has said what it is. Directory.Build.props is
imported before the project body, where <IsTestProject> has not been written yet, so anything
keyed on it has to live here: this file is imported afterwards. -->
<!-- The trim/AOT rules of PRD §2 apply to shipping code. Test and benchmark projects run on the
full runtime, reference test frameworks that are built on reflection by design, and are never
published — holding them to the analyzer would produce a wall of warnings that says nothing
about the product and would train everyone to ignore the ones that do. -->
<PropertyGroup Condition="'$(IsTestProject)' == 'true' Or '$(IsBenchmarkProject)' == 'true'">
<IsAotCompatible>false</IsAotCompatible>
<IsTrimmable>false</IsTrimmable>
<EnableTrimAnalyzer>false</EnableTrimAnalyzer>
<EnableAotAnalyzer>false</EnableAotAnalyzer>
<EnableSingleFileAnalyzer>false</EnableSingleFileAnalyzer>
</PropertyGroup>
<!-- Fixture trees (PRD §9.1) are recorded /proc snapshots: thousands of tiny files whose *content*
is the test input. They are copied only when newer, because copying them on every build is
most of a rebuild's wall-clock. -->
<ItemGroup Condition="'$(IsTestProject)' == 'true'">
<None Include="Fixtures/**/*" CopyToOutputDirectory="PreserveNewest" />
<None Include="Golden/**/*" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
</Project>