Skip to content

Commit

Permalink
Update target frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry08 committed Nov 16, 2024
1 parent 2b3ab6e commit 44c5395
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ jobs:

- name: Install MAUI Workload
#run: dotnet workload install maui --ignore-failed-sources
#run: dotnet workload install maui-android
run: dotnet workload install maui
run: dotnet workload install maui-android

# Setup JDK and Android SDK on Linux
- name: Set up JDK
Expand Down
6 changes: 1 addition & 5 deletions Yosu.Spotify.Core/Yosu.Spotify.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(NetVersion)-android;$(NetVersion)-ios;$(NetVersion)-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);$(NetVersion)-windows10.0.19041.0</TargetFrameworks>

<!--https://github.com/dotnet/maui/issues/12100-->
<PublishReadyToRun>false</PublishReadyToRun>
<TargetFramework>$(NetVersion)</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion Yosu.Youtube.Converter/Yosu.Youtube.Converter.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(NetVersion);$(NetVersion)-android;$(NetVersion)-ios;$(NetVersion)-maccatalyst</TargetFrameworks>
<TargetFrameworks>$(NetVersion)-android</TargetFrameworks>
<TargetFrameworks Condition="$([System.OperatingSystem]::IsLinux()) != true">$(NetVersion)-ios;$(NetVersion)-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);$(NetVersion)-windows10.0.19041.0</TargetFrameworks>
<UseMaui>true</UseMaui>
<!--<UseMauiEssentials>true</UseMauiEssentials>-->
Expand Down
3 changes: 2 additions & 1 deletion Yosu.Youtube.Core/Yosu.Youtube.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(NetVersion)-android;$(NetVersion)-ios;$(NetVersion)-maccatalyst</TargetFrameworks>
<TargetFrameworks>$(NetVersion)-android</TargetFrameworks>
<TargetFrameworks Condition="$([System.OperatingSystem]::IsLinux()) != true">$(NetVersion)-ios;$(NetVersion)-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);$(NetVersion)-windows10.0.19041.0</TargetFrameworks>

<!--https://github.com/dotnet/maui/issues/12100-->
Expand Down
3 changes: 2 additions & 1 deletion Yosu/Yosu.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(NetVersion)-android;$(NetVersion)-ios</TargetFrameworks>
<TargetFrameworks>$(NetVersion)-android</TargetFrameworks>
<TargetFrameworks Condition="$([System.OperatingSystem]::IsLinux()) != true">$(NetVersion)-ios</TargetFrameworks>
<OutputType>Exe</OutputType>
<RootNamespace>Yosu</RootNamespace>
<UseMaui>true</UseMaui>
Expand Down

0 comments on commit 44c5395

Please sign in to comment.