2022-12-19 06:43:12 +00:00
|
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
2019-03-05 23:55:18 +00:00
|
|
|
|
<Import Project="..\osu.Android.props" />
|
2019-01-06 05:18:12 +00:00
|
|
|
|
<PropertyGroup>
|
2024-02-01 15:50:26 +00:00
|
|
|
|
<TargetFramework>net8.0-android</TargetFramework>
|
2022-12-19 06:43:12 +00:00
|
|
|
|
<OutputType>Exe</OutputType>
|
2019-01-06 05:48:57 +00:00
|
|
|
|
<RootNamespace>osu.Game.Tests</RootNamespace>
|
2019-01-06 05:18:12 +00:00
|
|
|
|
<AssemblyName>osu.Game.Tests.Android</AssemblyName>
|
|
|
|
|
</PropertyGroup>
|
2021-03-08 05:45:11 +00:00
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<NoWarn>$(NoWarn);CA2007</NoWarn>
|
|
|
|
|
</PropertyGroup>
|
2019-01-06 05:18:12 +00:00
|
|
|
|
<ItemGroup>
|
2022-12-19 06:43:12 +00:00
|
|
|
|
<Compile Include="..\osu.Game.Tests\**\*.cs" Exclude="**\obj\**">
|
2019-01-06 05:18:12 +00:00
|
|
|
|
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
|
|
|
|
|
</Compile>
|
2022-12-19 06:43:12 +00:00
|
|
|
|
<!-- TargetPath is relative to RootNamespace,
|
|
|
|
|
and DllResourceStore is relative to AssemblyName. -->
|
|
|
|
|
<EmbeddedResource Include="..\osu.Game.Tests\**\Resources\**\*">
|
2019-01-06 05:18:12 +00:00
|
|
|
|
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
|
2022-12-19 06:43:12 +00:00
|
|
|
|
<TargetPath>Android\%(RecursiveDir)%(Filename)%(Extension)</TargetPath>
|
|
|
|
|
</EmbeddedResource>
|
2019-01-06 05:18:12 +00:00
|
|
|
|
</ItemGroup>
|
|
|
|
|
<ItemGroup>
|
2022-12-19 06:43:12 +00:00
|
|
|
|
<ProjectReference Include="..\osu.Game.Rulesets.Catch\osu.Game.Rulesets.Catch.csproj" />
|
|
|
|
|
<ProjectReference Include="..\osu.Game.Rulesets.Mania\osu.Game.Rulesets.Mania.csproj" />
|
|
|
|
|
<ProjectReference Include="..\osu.Game.Rulesets.Osu\osu.Game.Rulesets.Osu.csproj" />
|
|
|
|
|
<ProjectReference Include="..\osu.Game.Rulesets.Taiko\osu.Game.Rulesets.Taiko.csproj" />
|
|
|
|
|
<ProjectReference Include="..\osu.Game\osu.Game.csproj" />
|
2019-01-06 05:18:12 +00:00
|
|
|
|
</ItemGroup>
|
2021-02-01 10:37:19 +00:00
|
|
|
|
<ItemGroup Label="Package References">
|
|
|
|
|
<PackageReference Include="DeepEqual" Version="2.0.0" />
|
2022-03-09 19:15:34 +00:00
|
|
|
|
<PackageReference Include="Moq" Version="4.17.2" />
|
2021-02-01 10:37:19 +00:00
|
|
|
|
</ItemGroup>
|
2024-02-15 11:13:01 +00:00
|
|
|
|
<!-- osu.Framework.Android depends on https://www.nuget.org/packages/Xamarin.AndroidX.Window,
|
|
|
|
|
which - via a chain of transitive dependencies - also includes https://www.nuget.org/packages/Xamarin.Jetbrains.Annotations,
|
|
|
|
|
which causes compile failures such as:
|
|
|
|
|
|
|
|
|
|
The type 'NotNullAttribute' exists in both 'JetBrains.Annotations, Version=4242.42.42.42, Culture=neutral, PublicKeyToken=1010a0d8d6380325'
|
|
|
|
|
and 'Xamarin.Jetbrains.Annotations, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' [D:\a\osu\osu\osu.Game.Tests.Android\osu.Game.Tests.Android.csproj]
|
|
|
|
|
|
|
|
|
|
We cannot easily change the source files, because of how this project works
|
|
|
|
|
(all source files are basically symlinked from the desktop test project,
|
|
|
|
|
so changing anything there just for the sake of mobile would be strange).
|
|
|
|
|
Thus, apply the following "interesting" workaround as borrowed from https://stackoverflow.com/a/65127159 instead. -->
|
|
|
|
|
<Target Name="AddPackageAliases" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences">
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ReferencePath Condition="%(Filename) == 'Xamarin.Jetbrains.Annotations'">
|
|
|
|
|
<Aliases>XamarinJetbrainsAnnotations</Aliases>
|
|
|
|
|
</ReferencePath>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
</Target>
|
2021-03-08 05:45:11 +00:00
|
|
|
|
</Project>
|