From 42cced7fba3061e1d13767091f6ee31711ef3029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Folles=C3=B8?= Date: Tue, 21 Jul 2026 16:46:48 +0200 Subject: [PATCH 1/7] Remove the SKPaint-based measure overloads dropped by SkiaSharp 4 SkiaSharp 4 removes SKPaint.TextSize, so a paint can no longer carry text sizing. The SKFont-based MeasureLabels/MeasureLabel remain. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../Charts/Legacy/LegacyPointChart.cs | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/Sources/Microcharts/Charts/Legacy/LegacyPointChart.cs b/Sources/Microcharts/Charts/Legacy/LegacyPointChart.cs index f36225e..60b0d1b 100644 --- a/Sources/Microcharts/Charts/Legacy/LegacyPointChart.cs +++ b/Sources/Microcharts/Charts/Legacy/LegacyPointChart.cs @@ -329,32 +329,11 @@ protected SKRect[] MeasureLabels(string[] labels) return MeasureHelper.MeasureTexts(labels, font); } - /// - /// Measures the value labels with the text size of the given paint. - /// - /// The value labels. - protected SKRect[] MeasureLabels(string[] labels, SKPaint paint) - { - if (paint == null) - { - return MeasureLabels(labels); - } - - using var font = new SKFont(SKTypeface.Default, paint.TextSize); - return MeasureHelper.MeasureTexts(labels, font); - } - /// /// Measures the value label. /// /// The value label. protected SKRect MeasureLabel(string label) => MeasureLabels(new[] { label }).First(); - - /// - /// Measures the value label with the text size of the given paint. - /// - /// The value label. - protected SKRect MeasureLabel(string label, SKPaint paint) => MeasureLabels(new[] { label }, paint).First(); #endregion } } From eab01cf19a3becba57e09e173b35810cbca1fbe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Folles=C3=B8?= Date: Tue, 21 Jul 2026 16:46:48 +0200 Subject: [PATCH 2/7] Upgrade to SkiaSharp 4.150.1, versioned as 3.0.0-preview The SkiaSharp version is now a single SkiaSharpVersion property in Directory.Build.props, consumed by every project and fed into the meta-package nuspec as $skiasharpversion$. CI builds keep the -preview marker in their version suffix so prerelease packages can't be mistaken for a stable release on the feed. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/publish.yml | 12 +++++----- Sources/Directory.Build.props | 9 +++++-- .../Microcharts.Droid.csproj | 2 +- .../Microcharts.Maui/Microcharts.Maui.csproj | 2 +- .../Microcharts.Metapackage.csproj | 5 ++-- .../Microcharts.Metapackage.nuspec | 24 +++++++++---------- .../Microcharts.Samples.Android.csproj | 2 +- .../Microcharts.Samples.Maui.csproj | 2 +- .../Microcharts.Samples.iOS.csproj | 2 +- .../Microcharts.iOS/Microcharts.iOS.csproj | 2 +- Sources/Microcharts/Microcharts.csproj | 2 +- 11 files changed, 35 insertions(+), 29 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f670c6f..0c1fd4d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -40,22 +40,22 @@ jobs: dotnet workload list - name: "Restore and build solution" - run: dotnet build Sources/Microcharts.slnx --configuration Release -p:VersionPrelease=.${{ github.run_number }} + run: dotnet build Sources/Microcharts.slnx --configuration Release -p:VersionPrelease=-preview.${{ github.run_number }} - name: "Pack Microcharts Core" - run: dotnet pack Sources/Microcharts/Microcharts.csproj --configuration Release --no-build -p:VersionPrelease=.${{ github.run_number }} + run: dotnet pack Sources/Microcharts/Microcharts.csproj --configuration Release --no-build -p:VersionPrelease=-preview.${{ github.run_number }} - name: "Pack Microcharts Droid" - run: dotnet pack Sources/Microcharts.Droid/Microcharts.Droid.csproj --configuration Release --no-build -p:VersionPrelease=.${{ github.run_number }} + run: dotnet pack Sources/Microcharts.Droid/Microcharts.Droid.csproj --configuration Release --no-build -p:VersionPrelease=-preview.${{ github.run_number }} - name: "Pack Microcharts iOS" - run: dotnet pack Sources/Microcharts.iOS/Microcharts.iOS.csproj --configuration Release --no-build -p:VersionPrelease=.${{ github.run_number }} + run: dotnet pack Sources/Microcharts.iOS/Microcharts.iOS.csproj --configuration Release --no-build -p:VersionPrelease=-preview.${{ github.run_number }} - name: "Pack Microcharts MAUI" - run: dotnet pack Sources/Microcharts.Maui/Microcharts.Maui.csproj --configuration Release --no-build -p:VersionPrelease=.${{ github.run_number }} + run: dotnet pack Sources/Microcharts.Maui/Microcharts.Maui.csproj --configuration Release --no-build -p:VersionPrelease=-preview.${{ github.run_number }} - name: "Pack Microcharts Meta-package" - run: dotnet pack Sources/Microcharts.Metapackage/Microcharts.Metapackage.csproj --configuration Release -p:VersionPrelease=.${{ github.run_number }} + run: dotnet pack Sources/Microcharts.Metapackage/Microcharts.Metapackage.csproj --configuration Release -p:VersionPrelease=-preview.${{ github.run_number }} # Always publish the build to GitHub Packages (prerelease/CI feed). - name: Publish packages to GitHub Packages diff --git a/Sources/Directory.Build.props b/Sources/Directory.Build.props index bc4c5c9..7ceba7e 100644 --- a/Sources/Directory.Build.props +++ b/Sources/Directory.Build.props @@ -6,8 +6,13 @@ - 2.0.0 - + 3.0.0 + -preview + + + + + 4.150.1 diff --git a/Sources/Microcharts.Droid/Microcharts.Droid.csproj b/Sources/Microcharts.Droid/Microcharts.Droid.csproj index b35ffb2..072a155 100644 --- a/Sources/Microcharts.Droid/Microcharts.Droid.csproj +++ b/Sources/Microcharts.Droid/Microcharts.Droid.csproj @@ -10,7 +10,7 @@ maui anroid chart skia - + diff --git a/Sources/Microcharts.Maui/Microcharts.Maui.csproj b/Sources/Microcharts.Maui/Microcharts.Maui.csproj index 08bc6bd..c7ff9c4 100644 --- a/Sources/Microcharts.Maui/Microcharts.Maui.csproj +++ b/Sources/Microcharts.Maui/Microcharts.Maui.csproj @@ -12,7 +12,7 @@ https://github.com/microcharts-dotnet/Microcharts.git - + diff --git a/Sources/Microcharts.Metapackage/Microcharts.Metapackage.csproj b/Sources/Microcharts.Metapackage/Microcharts.Metapackage.csproj index 41c8035..49a6c16 100644 --- a/Sources/Microcharts.Metapackage/Microcharts.Metapackage.csproj +++ b/Sources/Microcharts.Metapackage/Microcharts.Metapackage.csproj @@ -4,7 +4,8 @@ Microcharts.Metapackage.nuspec - version=$(PackageVersion) + both for CI builds (3.0.0-preview.) and clean releases (3.0.0). + $skiasharpversion$ keeps the SkiaSharp deps in lockstep with the projects. --> + version=$(PackageVersion);skiasharpversion=$(SkiaSharpVersion) \ No newline at end of file diff --git a/Sources/Microcharts.Metapackage/Microcharts.Metapackage.nuspec b/Sources/Microcharts.Metapackage/Microcharts.Metapackage.nuspec index 84eb89b..331ef4c 100644 --- a/Sources/Microcharts.Metapackage/Microcharts.Metapackage.nuspec +++ b/Sources/Microcharts.Metapackage/Microcharts.Metapackage.nuspec @@ -17,34 +17,34 @@ - + - - - + + + - - - + + + - - - + + + - - + + diff --git a/Sources/Microcharts.Samples.Android/Microcharts.Samples.Android.csproj b/Sources/Microcharts.Samples.Android/Microcharts.Samples.Android.csproj index 617d57f..c322d27 100644 --- a/Sources/Microcharts.Samples.Android/Microcharts.Samples.Android.csproj +++ b/Sources/Microcharts.Samples.Android/Microcharts.Samples.Android.csproj @@ -13,7 +13,7 @@ full - + diff --git a/Sources/Microcharts.Samples.Maui/Microcharts.Samples.Maui.csproj b/Sources/Microcharts.Samples.Maui/Microcharts.Samples.Maui.csproj index 6ed73e5..dd490c4 100644 --- a/Sources/Microcharts.Samples.Maui/Microcharts.Samples.Maui.csproj +++ b/Sources/Microcharts.Samples.Maui/Microcharts.Samples.Maui.csproj @@ -53,7 +53,7 @@ - + diff --git a/Sources/Microcharts.Samples.iOS/Microcharts.Samples.iOS.csproj b/Sources/Microcharts.Samples.iOS/Microcharts.Samples.iOS.csproj index 813bbf6..e728bef 100644 --- a/Sources/Microcharts.Samples.iOS/Microcharts.Samples.iOS.csproj +++ b/Sources/Microcharts.Samples.iOS/Microcharts.Samples.iOS.csproj @@ -15,7 +15,7 @@ iPhone Developer - + diff --git a/Sources/Microcharts.iOS/Microcharts.iOS.csproj b/Sources/Microcharts.iOS/Microcharts.iOS.csproj index 7ea1b08..05d7504 100644 --- a/Sources/Microcharts.iOS/Microcharts.iOS.csproj +++ b/Sources/Microcharts.iOS/Microcharts.iOS.csproj @@ -10,7 +10,7 @@ maui ios chart skia - + diff --git a/Sources/Microcharts/Microcharts.csproj b/Sources/Microcharts/Microcharts.csproj index 6f9590a..46996d6 100644 --- a/Sources/Microcharts/Microcharts.csproj +++ b/Sources/Microcharts/Microcharts.csproj @@ -13,6 +13,6 @@ $(NoWarn);CS1591 - + From 1eafb1d06637c9846e03353d0e27f2cde9ca50e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Folles=C3=B8?= Date: Tue, 21 Jul 2026 16:46:48 +0200 Subject: [PATCH 3/7] Build paths with SKPathBuilder instead of mutating SKPath SkiaSharp 4 obsoletes the SKPath mutation methods; SKPathBuilder is the replacement and mirrors them one for one, so path construction is unchanged. Detached paths and builders are now disposed, fixing two leaked line-chart paths. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../Microcharts/Charts/HalfRadialGaugeChart.cs | 18 ++++++++++++------ Sources/Microcharts/Charts/LineChart.cs | 17 +++++++++++------ Sources/Microcharts/Charts/RadarChart.cs | 6 ++++-- Sources/Microcharts/Charts/RadialGaugeChart.cs | 9 ++++++--- Sources/Microcharts/Helpers/RadialHelpers.cs | 10 +++++----- 5 files changed, 38 insertions(+), 22 deletions(-) diff --git a/Sources/Microcharts/Charts/HalfRadialGaugeChart.cs b/Sources/Microcharts/Charts/HalfRadialGaugeChart.cs index 26c42a3..e843bbc 100644 --- a/Sources/Microcharts/Charts/HalfRadialGaugeChart.cs +++ b/Sources/Microcharts/Charts/HalfRadialGaugeChart.cs @@ -56,10 +56,13 @@ public void DrawGaugeArea(SKCanvas canvas, ChartEntry entry, float radius, int c IsAntialias = true, }) { - using (SKPath path = new SKPath()) + using (var builder = new SKPathBuilder()) { - path.AddArc(SKRect.Create(cx - radius * 2, cy - radius * 2, 4 * radius, 4 * radius), 180, 180); - canvas.DrawPath(path, paint); + builder.AddArc(SKRect.Create(cx - radius * 2, cy - radius * 2, 4 * radius, 4 * radius), 180, 180); + using (var path = builder.Detach()) + { + canvas.DrawPath(path, paint); + } } } } @@ -75,11 +78,14 @@ public void DrawGauge(SKCanvas canvas, SKColor color, float value, float radius, IsAntialias = true, }) { - using (SKPath path = new SKPath()) + using (var builder = new SKPathBuilder()) { var sweepAngle = AnimationProgress * 180 * (Math.Abs(value) - AbsoluteMinimum) / ValueRange; - path.AddArc(SKRect.Create(cx - radius * 2, cy - radius * 2, 4 * radius, 4 * radius), 180, sweepAngle); - canvas.DrawPath(path, paint); + builder.AddArc(SKRect.Create(cx - radius * 2, cy - radius * 2, 4 * radius, 4 * radius), 180, sweepAngle); + using (var path = builder.Detach()) + { + canvas.DrawPath(path, paint); + } } } } diff --git a/Sources/Microcharts/Charts/LineChart.cs b/Sources/Microcharts/Charts/LineChart.cs index fe97537..712d239 100644 --- a/Sources/Microcharts/Charts/LineChart.cs +++ b/Sources/Microcharts/Charts/LineChart.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using SkiaSharp; @@ -190,8 +190,7 @@ private void DrawSeriesLine(SKCanvas canvas, SKSize itemSize) using (var shader = CreateXGradient(points, s.Entries, s.Color)) paint.Shader = shader; - var path = new SKPath(); - //path.MoveTo(points.First()); + using var path = new SKPathBuilder(); var isFirst = true; var entries = s.Entries; @@ -229,7 +228,10 @@ private void DrawSeriesLine(SKCanvas canvas, SKSize itemSize) } } - canvas.DrawPath(path, paint); + using (var linePath = path.Detach()) + { + canvas.DrawPath(linePath, paint); + } } } } @@ -251,7 +253,7 @@ private void DrawLineArea(SKCanvas canvas, ChartSerie serie, SKPoint[] points, S { paint.Shader = EnableYFadeOutGradient ? SKShader.CreateCompose(shaderY, shaderX, SKBlendMode.SrcOut) : shaderX; - var path = new SKPath(); + using var path = new SKPathBuilder(); var isFirst = true; var entries = serie.Entries; @@ -296,7 +298,10 @@ private void DrawLineArea(SKCanvas canvas, ChartSerie serie, SKPoint[] points, S path.LineTo(lastPoint.X, origin); path.Close(); - canvas.DrawPath(path, paint); + using (var areaPath = path.Detach()) + { + canvas.DrawPath(areaPath, paint); + } } } } diff --git a/Sources/Microcharts/Charts/RadarChart.cs b/Sources/Microcharts/Charts/RadarChart.cs index 6aee7fe..85b99ee 100644 --- a/Sources/Microcharts/Charts/RadarChart.cs +++ b/Sources/Microcharts/Charts/RadarChart.cs @@ -103,9 +103,11 @@ public override void DrawContent(SKCanvas canvas, int width, int height) DrawBorder(canvas, center, radius); - using (var clip = new SKPath()) + using var clipBuilder = new SKPathBuilder(); + clipBuilder.AddCircle(center.X, center.Y, radius, SKPathDirection.Clockwise); + + using (var clip = clipBuilder.Detach()) { - clip.AddCircle(center.X, center.Y, radius); for (int i = 0; i < total; i++) diff --git a/Sources/Microcharts/Charts/RadialGaugeChart.cs b/Sources/Microcharts/Charts/RadialGaugeChart.cs index 858f42e..3a623d1 100644 --- a/Sources/Microcharts/Charts/RadialGaugeChart.cs +++ b/Sources/Microcharts/Charts/RadialGaugeChart.cs @@ -70,11 +70,14 @@ public void DrawGauge(SKCanvas canvas, SKColor color, float value, float radius, IsAntialias = true, }) { - using (SKPath path = new SKPath()) + using (var builder = new SKPathBuilder()) { var sweepAngle = AnimationProgress * 360 * (Math.Abs(value) - AbsoluteMinimum) / ValueRange; - path.AddArc(SKRect.Create(cx - radius, cy - radius, 2 * radius, 2 * radius), StartAngle, sweepAngle); - canvas.DrawPath(path, paint); + builder.AddArc(SKRect.Create(cx - radius, cy - radius, 2 * radius, 2 * radius), StartAngle, sweepAngle); + using (var path = builder.Detach()) + { + canvas.DrawPath(path, paint); + } } } } diff --git a/Sources/Microcharts/Helpers/RadialHelpers.cs b/Sources/Microcharts/Helpers/RadialHelpers.cs index 0c023b2..c894a9f 100644 --- a/Sources/Microcharts/Helpers/RadialHelpers.cs +++ b/Sources/Microcharts/Helpers/RadialHelpers.cs @@ -27,21 +27,21 @@ public static SKPoint GetCirclePoint(float r, float angle) public static SKPath CreateSectorPath(float start, float end, float outerRadius, float innerRadius = 0.0f, float margin = 0.0f) { - var path = new SKPath(); - // if the sector has no size, then it has no path if (start == end) { - return path; + return new SKPath(); } + using var path = new SKPathBuilder(); + // the the sector is a full circle, then do that if (end - start == 1.0f) { path.AddCircle(0, 0, outerRadius, SKPathDirection.Clockwise); path.AddCircle(0, 0, innerRadius, SKPathDirection.Clockwise); path.FillType = SKPathFillType.EvenOdd; - return path; + return path.Detach(); } // calculate the angles @@ -80,7 +80,7 @@ public static SKPath CreateSectorPath(float start, float end, float outerRadius, path.Close(); - return path; + return path.Detach(); } #endregion From 297649c5ef89604e56285f76e4f8a9d082238c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Folles=C3=B8?= Date: Mon, 27 Jul 2026 15:37:49 +0200 Subject: [PATCH 4/7] Skip the line area fill when a serie has no values DrawNullPoint pushes an SKPoint(float.MinValue, float.MinValue) placeholder so the point list stays index-aligned with the entries. When every entry in a serie is null the DrawLineArea loop never adds a point, leaving lastPoint on that sentinel, and the trailing LineTo/Close built a degenerate fill path spanning float.MinValue. Bail out before closing the path instead. Also drop two unused locals from CreateSectorPath and fix a duplicated word in the comment above the full-circle branch. Co-Authored-By: Claude Opus 5 (1M context) --- Sources/Microcharts/Charts/LineChart.cs | 7 +++++++ Sources/Microcharts/Helpers/RadialHelpers.cs | 6 +----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Sources/Microcharts/Charts/LineChart.cs b/Sources/Microcharts/Charts/LineChart.cs index 712d239..3b3cae2 100644 --- a/Sources/Microcharts/Charts/LineChart.cs +++ b/Sources/Microcharts/Charts/LineChart.cs @@ -296,6 +296,13 @@ private void DrawLineArea(SKCanvas canvas, ChartSerie serie, SKPoint[] points, S } } + // Every entry was null, so no point was ever added to the path and + // lastPoint still holds the placeholder used for null points. + if (isFirst) + { + return; + } + path.LineTo(lastPoint.X, origin); path.Close(); using (var areaPath = path.Detach()) diff --git a/Sources/Microcharts/Helpers/RadialHelpers.cs b/Sources/Microcharts/Helpers/RadialHelpers.cs index c894a9f..dc5c74f 100644 --- a/Sources/Microcharts/Helpers/RadialHelpers.cs +++ b/Sources/Microcharts/Helpers/RadialHelpers.cs @@ -35,7 +35,7 @@ public static SKPath CreateSectorPath(float start, float end, float outerRadius, using var path = new SKPathBuilder(); - // the the sector is a full circle, then do that + // if the sector is a full circle, then do that if (end - start == 1.0f) { path.AddCircle(0, 0, outerRadius, SKPathDirection.Clockwise); @@ -48,10 +48,6 @@ public static SKPath CreateSectorPath(float start, float end, float outerRadius, var startAngle = (TotalAngle * start) - UprightAngle; var endAngle = (TotalAngle * end) - UprightAngle; var large = endAngle - startAngle > PI ? SKPathArcSize.Large : SKPathArcSize.Small; - var sectorCenterAngle = ((endAngle - startAngle) / 2f) + startAngle; - - // get the radius bits - var cectorCenterRadius = ((outerRadius - innerRadius) / 2f) + innerRadius; // calculate the angle for the margins var offsetR = outerRadius == 0 ? 0 : ((margin / (TotalAngle * outerRadius)) * TotalAngle); From ba5eae02e7ee8e4f450ed486181363e04dde366f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Folles=C3=B8?= Date: Fri, 18 Sep 2026 11:58:32 +0200 Subject: [PATCH 5/7] Bump SkiaSharp to 4.152.1 4.152.1 is the latest stable SkiaSharp and brings the Skia m151 and m152 engine updates plus the m152 GlyphData fix. Neither line lists breaking changes, and the Microsoft.Maui.Controls floor stays at 10.0.20. Headless renders of every sample chart are pixel-identical to 4.150.1. Also update CLAUDE.md, which still described the library as built on SkiaSharp 3.x. Co-Authored-By: Claude Opus 5 --- CLAUDE.md | 2 +- Sources/Directory.Build.props | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index b94c4f7..0972502 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -28,7 +28,7 @@ There are no test projects in this repository. ## Architecture -Microcharts is a cross-platform charting library built on **SkiaSharp 3.x** targeting **.NET 10**. All chart rendering is platform-agnostic SkiaSharp drawing; platform projects provide thin `ChartView` wrappers. +Microcharts is a cross-platform charting library built on **SkiaSharp 4.x** targeting **.NET 10**. All chart rendering is platform-agnostic SkiaSharp drawing; platform projects provide thin `ChartView` wrappers. ### Project Dependency Graph diff --git a/Sources/Directory.Build.props b/Sources/Directory.Build.props index 7ceba7e..5830b8e 100644 --- a/Sources/Directory.Build.props +++ b/Sources/Directory.Build.props @@ -12,7 +12,7 @@ - 4.150.1 + 4.152.1 From bd97cbf0bfeef07d2be156ecbfc2f24e507c587c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Folles=C3=B8?= Date: Mon, 19 Oct 2026 14:11:54 +0200 Subject: [PATCH 6/7] Pin the CI .NET SDK, workload set and Xcode CI installed the newest 10.0.x SDK and workloads, so it drifted with every .NET release. Workload sets from 10.0.401.1 on ship the iOS 27 workload, which needs Xcode 27, and the macos-26 runner tops out at Xcode 26.6. They also move $(MauiVersion) to 10.0.110, which would silently raise the Microsoft.Maui.Controls floor of the published Microcharts.Maui package. Pin SDK 10.0.401 and workload set 10.0.401 (iOS 26.5.10318, MAUI 10.0.20) in both workflows, and Xcode 26.6 in the PR build. This is the exact toolchain the last green PR build used. Install the four workloads in one command so they all come from the pinned set. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/publish.yml | 9 ++++----- .github/workflows/pull-request.yml | 13 +++++++------ CLAUDE.md | 4 +++- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0c1fd4d..bb68f58 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,18 +25,17 @@ jobs: with: fetch-depth: 0 + # Pinned to match pull-request.yml. The workload set decides $(MauiVersion), which + # becomes the Microsoft.Maui.Controls floor of the published Microcharts.Maui package. - name: Install .NET SDK uses: actions/setup-dotnet@v6 with: dotnet-version: | - 10.0.x + 10.0.401 - name: "Install .NET workloads" run: | - dotnet workload install android - dotnet workload install ios - dotnet workload install maccatalyst - dotnet workload install maui + dotnet workload install android ios maccatalyst maui --version 10.0.401 dotnet workload list - name: "Restore and build solution" diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index e93f876..db8332b 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -19,25 +19,26 @@ jobs: with: fetch-depth: 0 + # The SDK, workload set and Xcode are pinned as a set (iOS 26.5 + MAUI 10.0.20 on + # Xcode 26.6). Newer workload sets ship the iOS 27 workload, which needs Xcode 27 + # (not on macos-26), and raise $(MauiVersion), the Microsoft.Maui.Controls floor + # of the published Microcharts.Maui package. Keep publish.yml in sync. - name: Install .NET SDK uses: actions/setup-dotnet@v6 with: dotnet-version: | - 10.0.x + 10.0.401 - name: "Install .NET workloads" run: | - dotnet workload install android - dotnet workload install ios - dotnet workload install maccatalyst - dotnet workload install maui + dotnet workload install android ios maccatalyst maui --version 10.0.401 dotnet workload list - name: Select Xcode if: matrix.os == 'macos-26' uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: latest-stable + xcode-version: '26.6' - name: "Build solution" run: dotnet build Sources/Microcharts.slnx --configuration Release diff --git a/CLAUDE.md b/CLAUDE.md index 0972502..66d19e7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -74,5 +74,7 @@ Version is managed centrally in `Sources/Directory.Build.props` (`VersionMain` p ## CI/CD -- **pull-request.yml** - Runs on pull requests (and manual dispatch); builds on `windows-latest` and `macos-26` (with Xcode `latest-stable` via `maxim-lobanov/setup-xcode@v1`) +- **pull-request.yml** - Runs on pull requests (and manual dispatch); builds on `windows-latest` and `macos-26` (with Xcode `26.6` via `maxim-lobanov/setup-xcode@v1`) - **publish.yml** - Manual trigger (`workflow_dispatch`); always publishes packages to GitHub Packages (`microcharts-dotnet` org), and additionally to nuget.org when the `publish_to_nuget` input is set (OIDC trusted publishing) + +Both workflows pin .NET SDK `10.0.401` and workload set `10.0.401` (iOS 26.5, MAUI 10.0.20). Newer workload sets bring the iOS 27 workload, which needs Xcode 27, and raise `$(MauiVersion)` — the `Microsoft.Maui.Controls` floor of the published `Microcharts.Maui` package. Bump the SDK, workload set and Xcode together. From 9fff9de8cf451dc2ab1c94750cea418f2814f6ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Folles=C3=B8?= Date: Mon, 19 Oct 2026 14:11:58 +0200 Subject: [PATCH 7/7] Bump SkiaSharp to 4.153.1 4.153.1 is the latest stable SkiaSharp. It moves the engine to Skia m153 and turns off RAW and DNG image decoding, which Microcharts does not use. The only listed breaking change is Linux font fallback, which may now pick a different face for text drawn without an explicit typeface. The Microsoft.Maui.Controls floor stays at 10.0.20. Headless renders of every sample chart on macOS are pixel-identical to 4.152.1. Co-Authored-By: Claude Opus 5.5 --- Sources/Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Directory.Build.props b/Sources/Directory.Build.props index 5830b8e..26f55e5 100644 --- a/Sources/Directory.Build.props +++ b/Sources/Directory.Build.props @@ -12,7 +12,7 @@ - 4.152.1 + 4.153.1