[ci-scan-net11] Graphics.Skia build fails after SkiaSharp API mismatch
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 290
Description
## Summary
Graphics.Skia fails to compile because the resolved SkiaSharp API lacks `SKPathBuilder` and the five-argument `DrawBitmap` overload.
## Build Information
- **Pipeline**: maui-pr
- **Build**: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1593652
- **Build ID**: 1593652
- **Branch**: net11.0
- **First seen**: 2026-09-11
- **Occurrences**: 2 in last 10 builds
## Affected Legs
- Pack on macOS
- Windows Helix unit-test build legs
- macOS and Windows Microsoft.Maui.sln build legs
## Error Message
```text
2026-09-11T22:40:05.3995620Z /Users/cloudtest/vss/_work/1/s/src/Graphics/src/Graphics.Skia/SKGraphicsExtensions.cs(185,40): error CS0246: The type or namespace name 'SKPathBuilder' could not be found (are you missing a using directive or an assembly reference?) [/Users/cloudtest/vss/_work/1/s/src/Graphics/src/Graphics.Skia/Graphics.Skia.csproj::TargetFramework=netstandard2.1]
2026-09-11T22:47:52.3522699Z ##[error]src\Graphics\src\Graphics.Skia\SkiaCanvas.cs(879,13): error CS1501: No overload for method 'DrawBitmap' takes 5 arguments
```
## Investigation Context
The same compiler failures occur across the Graphics.Skia target frameworks and multiple build legs. The signature also appears in one earlier build in the ten-build window. The evidence is consistent with a SkiaSharp dependency/API mismatch in `src/Graphics/src/Graphics.Skia`.
Contributor guide
Research direction
Start with src/Graphics/src/Graphics.Skia/Graphics.Skia.csproj to inspect the resolved SkiaSharp dependency, then read SKGraphicsExtensions.cs around line 185 and SkiaCanvas.cs around line 879. Reproduce the netstandard2.1 build or the maui-pr failure and confirm the SkiaSharp API matches these call sites. Done means the affected macOS and Windows build legs compile without the reported errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system, computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100