/
Essentials.DeviceTests.csproj
83 lines (73 loc) · 3.69 KB
/
Essentials.DeviceTests.csproj
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
82
83
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(MauiDeviceTestsPlatforms)</TargetFrameworks>
<OutputType>Exe</OutputType>
<SingleProject>true</SingleProject>
<RootNamespace>Microsoft.Maui.Essentials.DeviceTests</RootNamespace>
<AssemblyName>Microsoft.Maui.Essentials.DeviceTests</AssemblyName>
<!-- Disable multi-RID builds to workaround a parallel build issue -->
<RuntimeIdentifier Condition="$(TargetFramework.Contains('-maccatalyst'))">maccatalyst-x64</RuntimeIdentifier>
<RuntimeIdentifier Condition="$(TargetFramework.Contains('-maccatalyst')) and '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'arm64'">maccatalyst-arm64</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup>
<ApplicationTitle>Essentials Tests</ApplicationTitle>
<ApplicationId>com.microsoft.maui.essentials.devicetests</ApplicationId>
<ApplicationVersion>1</ApplicationVersion>
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
</PropertyGroup>
<PropertyGroup>
<!--
Uncomment the below to enabled unpackaged apps and change the
value of the "commandName" in the Properties\launchSettings.json
from "MsixPackage" to "Project".
-->
<!--<WindowsPackageType>None</WindowsPackageType>-->
</PropertyGroup>
<PropertyGroup>
<!--
Uncomment the below to enabled unpackaged apps and change the
value of the "commandName" in the Properties\launchSettings.json
from "MsixPackage" to "Project".
-->
<!--<WindowsPackageType>None</WindowsPackageType>-->
</PropertyGroup>
<ItemGroup>
<MauiIcon Include="Resources\appicon.svg" ForegroundFile="Resources\appiconfg.svg" Color="#512BD4" />
<MauiSplashScreen Include="Resources\appiconfg.svg" Color="#512BD4" BaseSize="128,128" />
<MauiImage Include="Resources\Images\*" />
<MauiFont Include="Resources\Fonts\*" />
<MauiImage Update="Resources\Images\*.gif" Resize="false" />
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\TestUtils\src\DeviceTests\TestUtils.DeviceTests.csproj" />
<ProjectReference Include="..\..\..\TestUtils\src\DeviceTests.Runners\TestUtils.DeviceTests.Runners.csproj" />
<ProjectReference Include="..\..\..\TestUtils\src\DeviceTests.Runners.SourceGen\TestUtils.DeviceTests.Runners.SourceGen.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\..\..\Core\src\Core.csproj" />
<ProjectReference Include="..\..\..\Controls\src\Xaml\Controls.Xaml.csproj" />
<ProjectReference Include="..\..\..\Controls\src\Core\Controls.Core.csproj" />
<ProjectReference Include="..\..\..\Essentials\src\Essentials.csproj" />
</ItemGroup>
<ItemGroup>
<AndroidEnvironment Include="Platforms\Android\environment.txt" />
</ItemGroup>
<!-- include/exclude the <platform> files -->
<ItemGroup>
<None Include="@(Compile)" />
<None Include="Traits.cs" />
<None Include="Utils.cs" />
</ItemGroup>
<ItemGroup Condition="!$(TargetFramework.Contains('-android'))">
<Compile Remove="**\*.Android.cs" />
<Compile Remove="**\Android\**\*.cs" />
</ItemGroup>
<ItemGroup Condition="!$(TargetFramework.Contains('-ios')) and !$(TargetFramework.Contains('-maccatalyst'))">
<Compile Remove="**\*.iOS.cs" />
<Compile Remove="**\iOS\**\*.cs" />
</ItemGroup>
<ItemGroup Condition="!$(TargetFramework.Contains('-windows'))">
<Compile Remove="**\*.Windows.cs" />
<Compile Remove="**\Windows\**\*.cs" />
</ItemGroup>
<Import Project="$(MauiSrcDirectory)Maui.InTree.props" Condition=" '$(UseMaui)' != 'true' " />
</Project>