Skip to content

Commit e2f1eb2

Browse files
authored
Merge pull request #11 from janusw/net8_sample
Various updates
2 parents e0faaf8 + d05de0e commit e2f1eb2

File tree

3 files changed

+30
-16
lines changed

3 files changed

+30
-16
lines changed

.github/workflows/dotnet.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ jobs:
1313
winBuild:
1414
runs-on: windows-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
19-
- uses: nuget/setup-nuget@v1
19+
- uses: nuget/setup-nuget@v2
2020
- name: Setup .NET
21-
uses: actions/setup-dotnet@v3
21+
uses: actions/setup-dotnet@v4
2222
with:
2323
dotnet-version: 8.0.x
2424
- name: Set up JDK 11
25-
uses: actions/setup-java@v3
25+
uses: actions/setup-java@v4
2626
with:
2727
distribution: 'temurin'
2828
java-version: '11'
@@ -37,21 +37,25 @@ jobs:
3737
- name: Build sample
3838
run: dotnet build ./Source/OxyplotMauiSample/OxyplotMauiSample.csproj /p:Configuration=Release /t:restore,build /p:Version=$(git describe) /p:ContinuousIntegrationBuild=true /p:DeterministicSourcePaths=false
3939
- name: Upload packages
40-
uses: actions/upload-artifact@v3
40+
uses: actions/upload-artifact@v4
4141
with:
4242
name: nupkg
4343
path: ./Source/*/nuget/*.nupkg
4444

4545
macBuild:
4646
runs-on: macos-13
4747
steps:
48-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@v4
4949
with:
5050
fetch-depth: 0
5151
- name: Setup .NET
52-
uses: actions/setup-dotnet@v3
52+
uses: actions/setup-dotnet@v4
5353
with:
5454
dotnet-version: 8.0.x
55+
- name: Setup XCode
56+
uses: maxim-lobanov/setup-xcode@v1
57+
with:
58+
xcode-version: '15.1'
5559
- name: Install .NET MAUI
5660
run: |
5761
dotnet nuget locals all --clear

Source/OxyPlot.Maui.Skia/OxyPlot.Maui.Skia.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net7.0-android33.0;net7.0-ios;net7.0-maccatalyst;net8.0;net8.0-android34.0;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0;net8.0-windows10.0.19041.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net8.0-android34.0;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
5+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.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);net7.0-tizen</TargetFrameworks> -->
88
<UseMaui>true</UseMaui>
@@ -29,19 +29,22 @@
2929
<RepositoryUrl>https://github.com/oxyplot/oxyplot-maui</RepositoryUrl>
3030
</PropertyGroup>
3131

32+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'">
33+
<CreatePackage>false</CreatePackage>
34+
</PropertyGroup>
3235
<ItemGroup>
3336
<PackageReference Include="OxyPlot.Core" Version="2.1.2" />
34-
<PackageReference Include="SkiaSharp.HarfBuzz" Version="2.88.6" />
35-
<PackageReference Include="SkiaSharp.Views.Maui.Controls" Version="2.88.6" />
37+
<PackageReference Include="SkiaSharp.HarfBuzz" Version="2.88.8" />
38+
<PackageReference Include="SkiaSharp.Views.Maui.Controls" Version="2.88.8" />
3639
</ItemGroup>
3740

3841
<ItemGroup Condition=" $(TargetFramework.StartsWith('net8.0')) ">
39-
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.3" />
42+
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.70" />
4043
</ItemGroup>
4144

4245
<ItemGroup>
43-
<None Include="..\..\README.md" Pack="true" PackagePath="\"/>
44-
<None Include="..\..\icon.png" Pack="true" PackagePath="\"/>
46+
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
47+
<None Include="..\..\icon.png" Pack="true" PackagePath="\" />
4548
</ItemGroup>
4649

4750
<ItemGroup>

Source/OxyplotMauiSample/OxyplotMauiSample.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0-android33.0;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0-android34.0;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
5+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.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);net6.0-tizen</TargetFrameworks> -->
88
<OutputType>Exe</OutputType>
@@ -30,6 +30,12 @@
3030
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
3131
</PropertyGroup>
3232

33+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'">
34+
<CreatePackage>false</CreatePackage>
35+
</PropertyGroup>
36+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-ios|AnyCPU'">
37+
<CreatePackage>false</CreatePackage>
38+
</PropertyGroup>
3339
<ItemGroup>
3440
<!-- App Icon -->
3541
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
@@ -58,6 +64,7 @@
5864

5965
<ItemGroup>
6066
<PackageReference Include="OxyPlot.ExampleLibrary" Version="2.1.2" />
67+
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.70" />
6168
</ItemGroup>
6269

6370
<ItemGroup>

0 commit comments

Comments
 (0)