forked from f-spot/f-spot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathafter.F-Spot.sln.targets.in
39 lines (38 loc) · 1.8 KB
/
after.F-Spot.sln.targets.in
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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="DisableUnitTestProjects" BeforeTargets="Build;Rebuild;Clean">
<!-- serach for all UnitTest projects in solution -->
<ItemGroup>
<UnitTestProjects Include="$(SolutionDir)**\*.UnitTest.csproj" />
</ItemGroup>
<!-- conditionally exclude UnitTest projects from build -->
<ItemGroup Condition="@SKIP_UNIT_TEST_PROJECTS@">
<!-- MSBuild creates a single ItemGroup named ProjectReference
from which all unwanted projects can easily be removed.
Unfortunately, xbuild creates several such ItemGroups based
on the projects level. Thus, we need to remove the unwanted
projects from each such level (at some time there could be
more than these 10) -->
<BuildLevel0 Remove="@(UnitTestProjects)" />
<BuildLevel1 Remove="@(UnitTestProjects)" />
<BuildLevel2 Remove="@(UnitTestProjects)" />
<BuildLevel3 Remove="@(UnitTestProjects)" />
<BuildLevel4 Remove="@(UnitTestProjects)" />
<BuildLevel5 Remove="@(UnitTestProjects)" />
<BuildLevel6 Remove="@(UnitTestProjects)" />
<BuildLevel7 Remove="@(UnitTestProjects)" />
<BuildLevel8 Remove="@(UnitTestProjects)" />
<BuildLevel9 Remove="@(UnitTestProjects)" />
<BuildLevel10 Remove="@(UnitTestProjects)" />
<BuildLevel11 Remove="@(UnitTestProjects)" />
<BuildLevel12 Remove="@(UnitTestProjects)" />
<BuildLevel13 Remove="@(UnitTestProjects)" />
<BuildLevel14 Remove="@(UnitTestProjects)" />
<BuildLevel15 Remove="@(UnitTestProjects)" />
<BuildLevel16 Remove="@(UnitTestProjects)" />
<BuildLevel17 Remove="@(UnitTestProjects)" />
<BuildLevel18 Remove="@(UnitTestProjects)" />
<BuildLevel19 Remove="@(UnitTestProjects)" />
</ItemGroup>
</Target>
</Project>