Skip to content

fix: include .skia.cs files for net9.0-browserwasm with SkiaRenderer - #23108

Closed
MartinZikmund with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-skia-files-inclusion
Closed

MartinZikmund with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-skia-files-inclusion

Conversation

Copilot AI commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

.skia.cs files were excluded when targeting net9.0-browserwasm with SkiaRenderer because the exclusion condition only checked UnoRuntimeIdentifier != 'Skia'. Browser WASM targets set IsBrowserWasm=true rather than UnoRuntimeIdentifier=Skia, so Skia-specific files were always stripped.

PR Type:

  • 🐞 Bugfix

What is the current behavior? 🤔

When using net9.0-browserwasm with SkiaRenderer, all files ending in .skia.cs are excluded from compilation because UnoRuntimeIdentifier is never set to Skia for that target — it uses IsBrowserWasm=true instead.

What is the new behavior? 🚀

.skia.cs files are now included when IsBrowserWasm=true and UnoFeatures contains skiarenderer, matching the existing pattern used for .wasm.cs inclusion:

<!-- Before -->
<Compile Remove="**\*.skia.cs" Condition="'$(UnoRuntimeIdentifier)'!='Skia'" />

<!-- After -->
<Compile Remove="**\*.skia.cs" Condition="'$(UnoRuntimeIdentifier)'!='Skia' AND ('$(IsBrowserWasm)'!='true' OR !$(UnoFeatures.Contains(';skiarenderer;')))" />

Files are included when either:

  • UnoRuntimeIdentifier == 'Skia' (standard desktop Skia target), or
  • IsBrowserWasm == 'true' and UnoFeatures contains skiarenderer

PR Checklist ✅

Please check if your PR fulfills the following requirements:

Other information ℹ️

Only src/Uno.Sdk/targets/Uno.CrossTargeting.targets is modified. The legacy src/Uno.CrossTargetting.targets is unchanged as UnoFeatures is not available in non-SDK project contexts.

Copilot AI requested review from Copilot and removed request for Copilot April 21, 2026 22:04
Copilot AI changed the title [WIP] Fix files ending in .skia.cs inclusion for net9.0-browserwasm fix: include .skia.cs files for net9.0-browserwasm with SkiaRenderer Apr 21, 2026
Copilot AI requested a review from MartinZikmund April 21, 2026 22:05
@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or it will be closed in 10 days.

@github-actions github-actions Bot added the stale This item has been marked as stale and will be closed if there is no activity. label Jun 22, 2026
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

This PR was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions Bot closed this Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale This item has been marked as stale and will be closed if there is no activity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Files ending in .skia.cs are not included when using net9.0-browserwasm with SkiaRenderer

2 participants