Skip to content

Commit 5776ca4

Browse files
committed
MauiSample: add .NET 9 target frameworks
1 parent 5636f9f commit 5776ca4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MauiSample/MauiSample.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst;net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
5+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0;net9.0-windows10.0.19041.0</TargetFrameworks>
66
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
77
<!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> -->
88
<OutputType>Exe</OutputType>
@@ -31,7 +31,7 @@
3131
<ProvisioningType>automatic</ProvisioningType>
3232
</PropertyGroup>
3333

34-
<PropertyGroup Condition="'$(TargetFramework)'=='net8.0-ios'">
34+
<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
3535
<CodesignKey>Apple Development: Created via API (K8Q3S2AN24)</CodesignKey>
3636
<CodesignProvision>VS: WildCard Development</CodesignProvision>
3737
</PropertyGroup>

0 commit comments

Comments
 (0)