Repository navigation
Improve NuGet package READMEs - #4714
Conversation
Add co-located onboarding READMEs for the primary SkiaSharp, HarfBuzzSharp, MAUI, Blazor, and native views packages. Generate a professional fallback for every other packable project, with explicit native-asset and infrastructure guidance. Co-authored-by: Copilot App <[email protected]>
📦 Try the packages from this PRWarning Do not run these scripts without first reviewing the code in this PR. Step 1 — Download the packages bash / macOS / Linux: curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 4714PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4714"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-4714/packages --name skiasharp-pr-4714More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4714 |
📊 SkiaSharp benchmarks — PR #4714⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS
Highlights⏱️ Time — 🔴 23 slower · 🟢 16 faster
Full per-OS benchmark deltasLinux⏱️ Time (vs 🌙 nightly
Windows⏱️ Time (vs 🌙 nightly
macOS⏱️ Time (vs 🌙 nightly
|
|
📖 Documentation Preview The documentation for this PR has been deployed and is available at: 🔗 View Staging Site This preview will be updated automatically when you push new commits to this PR. This comment is automatically updated by the documentation staging workflow. |
Co-authored-by: Copilot App <[email protected]> Copilot-Session: f47daf0f-e6a0-4da6-b113-afd36f216acb
📦 Artifact size reportPackages from this PR (build Total Packages
+38 package(s) unchanged (< 50.0 KB). Per-file changes
|
| File | Size |
|---|---|
README.md |
219 B → 1.9 KB (🔴 +1.7 KB) |
SkiaSharp.NativeAssets.WinUI
| File | Size |
|---|---|
runtimes/win-arm64/native/libGLESv2.pdb |
64.5 MB → 64.4 MB (🟢 −64.0 KB) |
runtimes/win-x64/native/libGLESv2.pdb |
66.6 MB → 66.6 MB (🟢 −48.0 KB) |
runtimes/win-x86/native/libGLESv2.pdb |
67.2 MB → 67.2 MB (🟢 −48.0 KB) |
README.md |
219 B → 1.9 KB (🔴 +1.7 KB) |
Informational only — this never blocks the PR. Native binaries are labelled by os/arch.
Co-authored-by: Copilot App <[email protected]> Copilot-Session: f47daf0f-e6a0-4da6-b113-afd36f216acb
There was a problem hiding this comment.
Pull request overview
Improves NuGet onboarding with package-specific and generated README content.
Changes:
- Adds five rich package READMEs.
- Generates fallback READMEs for other packages.
- Refines native-assets notices and package descriptions.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
source/SkiaSharp.Views/SkiaSharp.Views/PACKAGE-README.md |
Documents native platform views. |
source/SkiaSharp.Views/SkiaSharp.Views.Desktop.Common/SkiaSharp.Views.Desktop.Common.csproj |
Adds an infrastructure-package notice. |
source/SkiaSharp.Views/SkiaSharp.Views.Blazor/PACKAGE-README.md |
Adds Blazor onboarding and example. |
source/SkiaSharp.Views.Maui/SkiaSharp.Views.Maui.Core/SkiaSharp.Views.Maui.Core.csproj |
Directs users to the MAUI Controls package. |
source/SkiaSharp.Views.Maui/SkiaSharp.Views.Maui.Controls/PACKAGE-README.md |
Adds MAUI setup and drawing guidance. |
source/SkiaSharp.NuGet.targets |
Implements custom and fallback README generation. |
binding/SkiaSharp/PACKAGE-README.md |
Adds core SkiaSharp onboarding. |
binding/SkiaSharp.SceneGraph/SkiaSharp.SceneGraph.csproj |
Revises SceneGraph metadata. |
binding/SkiaSharp.Resources/SkiaSharp.Resources.csproj |
Corrects resource-provider description. |
binding/NativeAssets.Build.targets |
Adds native-assets README metadata. |
binding/HarfBuzzSharp/PACKAGE-README.md |
Adds HarfBuzzSharp onboarding. |
binding/Directory.Build.targets |
Adds HarfBuzz-specific resource links. |
Co-authored-by: Copilot App <[email protected]> Copilot-Session: f47daf0f-e6a0-4da6-b113-afd36f216acb
Description
NuGet package READMEs were generated from the short
PackageDescription, leaving every package page with little more than one sentence. This adds polished, package-specific onboarding for the five primary packages (SkiaSharp,HarfBuzzSharp,SkiaSharp.Views,SkiaSharp.Views.Maui.Controls, andSkiaSharp.Views.Blazor) with capabilities, installation, working examples, package selection, Microsoft Learn/API links, DocFX guides, the live Blazor Gallery, SkiaFiddle, support, and contribution information.Each rich
PACKAGE-README.mdis co-located with its project. The shared packaging target discovers that convention and generates a professional fallback README for the other 36 packable projects. Package-specific guidance is expressed through explicit MSBuild properties: native-assets metadata lives inNativeAssets.Build.targets, while infrastructure-package notices live in their projects. Native package descriptions and two incorrect SceneGraph/Resources descriptions are also corrected.Related issues
None.
Required skia PR
None.
Areas affected
binding/)externals/skia/src/c,include/c)Changes
None — package documentation and NuGet metadata only; no public API or runtime behavior changes.
Testing
README.mdfor all 41 packable projects: 5 co-located custom READMEs and 36 generated fallbacks.SkiaSharpandSkiaSharp.NativeAssets.Linux.NoDependenciesNuGets and verified the embedded README,<readme>metadata, concise native package description, and package-notes placement.dotnet test tests/SkiaSharp.Tests.Console.slnx -p:TargetFramework=net10.0 -p:TargetFrameworks=net10.0. The SingletonInit, Direct3D, and Vulkan hosts passed. In the core host, 6,098 passed and 23 skipped; two transient stream/GC failures passed when rerun in isolation. The existing localganesh-gl/DiagonalLinesgolden comparison remains outside tolerance on this Mac (1,832 pixels versus 1,310 allowed); all other focused visual cases passed (19 passed, 5 skipped). This PR does not change rendering code or golden images.No tests were added because the change is package documentation and shared pack metadata; the package-generation and packed-artifact checks above cover the changed behavior.
Checklist
Changesabove lists all public API and behavioral changes (or "None.")mono/skiaPR linked above and bindings regenerated