-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathMaui.InTree.props
40 lines (32 loc) · 2.63 KB
/
Maui.InTree.props
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
<Project>
<ImportGroup Condition="Exists('$(_MauiBuildTasksLocation)Microsoft.Maui.Controls.Build.Tasks.dll') and Exists('$(_MauiBuildTasksLocation)Microsoft.Maui.Resizetizer.dll')">
<!-- Microsoft.Maui.Core.props -->
<Import Project="$(_MauiBuildTasksLocation)net$(_MauiMinimumSupportedDotNetTfm)-windows$(MinimumWindowsTargetFrameworkVersion)\Microsoft.Maui.Core.props" Condition="'$(_MauiTargetPlatformIsWindows)' == 'true'" />
<Import Project="$(_MauiBuildTasksLocation)Microsoft.Maui.Core.props" Condition="'$(_MauiTargetPlatformIsWindows)' != 'true'" />
<!-- Microsoft.Maui.Controls.Build.Tasks.props -->
<Import Project="$(_MauiBuildTasksLocation)net6.0-ios10.0\Microsoft.Maui.Controls.Build.Tasks.props" Condition="'$(_MauiTargetPlatformIsiOS)' == 'true'" />
<Import Project="$(_MauiBuildTasksLocation)net6.0-maccatalyst13.1\Microsoft.Maui.Controls.Build.Tasks.props" Condition="'$(_MauiTargetPlatformIsMacCatalyst)' == 'true'" />
<Import Project="$(_MauiBuildTasksLocation)net6.0-windows10.0.17763.0\Microsoft.Maui.Controls.Build.Tasks.props" Condition="'$(_MauiTargetPlatformIsWindows)' == 'true'" />
<Import Project="$(_MauiBuildTasksLocation)Microsoft.Maui.Controls.Build.Tasks.props" Condition="'$(_MauiTargetPlatformIsiOS)' != 'true' and '$(_MauiTargetPlatformIsMacCatalyst)' != 'true' and '$(_MauiTargetPlatformIsWindows)' != 'true'" />
<!-- Microsoft.Maui.Resizetizer.props -->
<Import Project="$(_MauiBuildTasksLocation)Microsoft.Maui.Resizetizer.props" />
</ImportGroup>
<!--
Workaround for Arcade versioning. We need to force the Arcade properties
to match the value in the csproj property ApplicationDisplayVersion.
-->
<PropertyGroup Condition="'$(ApplicationDisplayVersion)' != ''">
<_TempApplicationDisplayVersion>$(ApplicationDisplayVersion).0.0.0</_TempApplicationDisplayVersion>
<MajorVersion>$(_TempApplicationDisplayVersion.Split('.')[0])</MajorVersion>
<MinorVersion>$(_TempApplicationDisplayVersion.Split('.')[1])</MinorVersion>
<PatchVersion>$(_TempApplicationDisplayVersion.Split('.')[2])</PatchVersion>
<PreReleaseVersionLabel></PreReleaseVersionLabel>
<!-- App versions cannot be prerelease since they are 3 or 4 part numbers in manifests. -->
<DotNetFinalVersionKind>release</DotNetFinalVersionKind>
</PropertyGroup>
<!--
This is a targets file, but needs to go here as it must come after the csproj but before the NuGet packages.
In the release .NET MAUI SDK, this is imported by the workloads which puts it in the middle as well.
-->
<Import Project="$(MauiSrcDirectory)Workload\Microsoft.Maui.Sdk\Sdk\Microsoft.Maui.Sdk.targets" />
</Project>