Skip to content

Restore self-contained Windows App SDK packaging#4488

Merged
Marc-André Moreau (mamoreau-devolutions) merged 1 commit intomainfrom
fix-windows-app-runtime-issue
Mar 17, 2026
Merged

Restore self-contained Windows App SDK packaging#4488
Marc-André Moreau (mamoreau-devolutions) merged 1 commit intomainfrom
fix-windows-app-runtime-issue

Conversation

@mamoreau-devolutions

Summary

  • restore app-local Windows App SDK packaging for the WinUI app
  • move the self-contained Windows App SDK settings into UniGetUI.csproj, where TargetFramework is already known
  • ensure release artifacts bundle Microsoft.WindowsAppRuntime.dll again on clean machines

Root Cause

A shared-target-framework refactor moved the Windows App SDK self-contained settings into Directory.Build.props behind a condition that depends on TargetFramework. Directory.Build.props is imported before UniGetUI.csproj sets TargetFramework, so the condition stopped matching for the app project. That silently disabled app-local Windows App SDK packaging and release artifacts stopped including Microsoft.WindowsAppRuntime.dll.

Validation

  • rebuilt the focused fix artifact and verified it contains Microsoft.WindowsAppRuntime.Bootstrap.dll
  • rebuilt the focused fix artifact and verified it contains Microsoft.WindowsAppRuntime.dll
  • rebuilt the focused fix artifact and verified it contains Microsoft.WindowsAppRuntime.Insights.Resource.dll
  • confirmed the repaired build works in the previously failing environment

Fixes #4487

The shared-target-framework refactor moved the Windows App SDK self-contained settings into Directory.Build.props behind a condition that depends on TargetFramework being set. Because Directory.Build.props is evaluated before UniGetUI.csproj assigns TargetFramework, the app project stopped evaluating as self-contained and no longer bundled Microsoft.WindowsAppRuntime.dll in release artifacts.

Move the self-contained Windows App SDK settings into UniGetUI.csproj so they are evaluated after the app TargetFramework is known and the runtime payload is bundled again.

Fixes #4487.
@mamoreau-devolutions Marc-André Moreau (mamoreau-devolutions) merged commit 6db8ab3 into main Mar 17, 2026
1 check passed
@mamoreau-devolutions Marc-André Moreau (mamoreau-devolutions) deleted the fix-windows-app-runtime-issue branch March 17, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Required components of the Windows App Runtime are missing

2 participants