This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.proj
71 lines (52 loc) · 2.6 KB
/
build.proj
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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Set up some basic properties to control the build configuration -->
<PropertyGroup>
<Release Condition=" '$(Release)' == ''">false</Release>
<IsMac>false</IsMac>
<IsMac Condition="'$(OS)' == 'Unix'">true</IsMac>
<IsWindows>false</IsWindows>
<IsWindows Condition="!$(IsMac)">true</IsWindows>
<Mono64 Condition="$(IsMac)">mono64 --debug</Mono64>
</PropertyGroup>
<!-- Choose the correct Debug/Release configuration for the current platform -->
<PropertyGroup Condition="'$(Configuration)' == ''">
<Configuration Condition=" '!$(Release)' And '$(IsMac)' ">DebugMac</Configuration>
<Configuration Condition=" '!$(Release)' And '$(IsWindows)' ">Debug</Configuration>
<Configuration Condition=" '$(Release)' And '$(IsMac)' ">ReleaseMac</Configuration>
<Configuration Condition=" '$(Release)' And '$(IsWindows)' ">Release</Configuration>
</PropertyGroup>
<PropertyGroup>
<CommonBuildProperties>$(CommonBuildProperties);Configuration=$(Configuration)</CommonBuildProperties>
<TestProjectDirectory>Xamarin.PropertyEditing.Tests\</TestProjectDirectory>
<TestAssemblyBaseDirectory>Xamarin.PropertyEditing.Tests\bin\</TestAssemblyBaseDirectory>
<TestAssemblyName>Xamarin.PropertyEditing.Tests.dll</TestAssemblyName>
<Out Condition="'$(Out)' == ''">$(MSBuildThisFileDirectory)out</Out>
</PropertyGroup>
<!-- List the sln files we need to build -->
<ItemGroup>
<SolutionFiles Include="$(MSBuildThisFileDirectory)Xamarin.PropertyEditing.sln" />
</ItemGroup>
<Target Name="Build">
<MSBuild Projects="@(SolutionFiles)" Properties="$(CommonBuildProperties)" Targets="Build" />
</Target>
<Target Name="Clean">
<MSBuild Projects="@(SolutionFiles)" Properties="$(CommonBuildProperties)" Targets="Clean" />
<RemoveDir Directories="$(Out)" Condition=" Exists('$(Out)') " />
</Target>
<Target Name="Rebuild" DependsOnTargets="Clean;Build" />
<Target Name="Restore">
<MSBuild Projects="@(SolutionFiles)" Properties="$(CommonBuildProperties)" Targets="Restore" />
</Target>
<Target Name="Test" DependsOnTargets="TestMac;TestWindows">
<ItemGroup>
<TestAssembly Include="$(TestAssemblyBaseDirectory)**\$(TestAssemblyName)" />
</ItemGroup>
<MakeDir Directories="$(Out)" />
<Exec Command="dotnet test $(TestProjectDirectory)Xamarin.PropertyEditing.Tests.csproj -- NUnit.TestOutputXml='$(Out)'" />
</Target>
<Target Name="TestMac" Condition=" '$(IsMac)' ">
</Target>
<Target Name="TestWindows" Condition=" '$(IsWindows)' ">
</Target>
</Project>