Skip to content

fix: Fix invalid TFMs used to init project#22992

Merged
dr1rrb merged 1 commit intomasterfrom
dev/dr/fixInvalidTFMs4HR
Apr 8, 2026
Merged

fix: Fix invalid TFMs used to init project#22992
dr1rrb merged 1 commit intomasterfrom
dev/dr/fixInvalidTFMs4HR

Conversation

@dr1rrb
Copy link
Copy Markdown
Member

@dr1rrb dr1rrb commented Apr 8, 2026

🐞 Bugfix

Fix invalid TFMs used to init project

What is the current behavior? 🤔

When we init the HR workspace, we are setting the TFMs which flows on all projects

What is the new behavior? 🚀

Remove the property and let the project defines it's TFM (except the root one where TFM is configured using the UnoHotReloadTargetFramework)

PR Checklist ✅

Other information ℹ️

Linked to https://github.com/unoplatform/private/issues/926 and unoplatform/uno.toolkit.ui#1565

Copilot AI review requested due to automatic review settings April 8, 2026 20:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in the Hot Reload workspace initialization where invalid Target Framework Monikers (TFMs) were being set globally, causing library projects to inherit incompatible TFM values from the head project. The fix prevents TargetFrameworks from being set as a global property during workspace creation, allowing each project to use its own configured TFM while passing the head project's TFM through a separate property (UnoHotReloadTargetFramework).

Changes:

  • Removed direct setting of TargetFrameworks global property during Hot Reload workspace initialization
  • Added validation filter to prevent TargetFrameworks from being set globally, with detailed comments explaining why library projects need independent TFM configuration

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Uno.UI.RemoteControl.Server.Processors/HotReload/ServerHotReloadProcessor.MetadataUpdate.cs Removed the line that was setting TargetFrameworks globally, keeping only UnoHotReloadTargetFramework
src/Uno.UI.RemoteControl.Server.Processors/HotReload/MetadataUpdates/CompilationWorkspaceProvider.cs Added filter logic in IsValidProperty to prevent TargetFrameworks from being included in global workspace properties

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dr1rrb dr1rrb enabled auto-merge April 8, 2026 20:45
@unodevops
Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22992/wasm-skia-net9/index.html

@dr1rrb dr1rrb merged commit c7237dd into master Apr 8, 2026
63 checks passed
@dr1rrb dr1rrb deleted the dev/dr/fixInvalidTFMs4HR branch April 8, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants