Skip to content

fix(win): resolve apphost license pack from SDK-chosen apphost path - #8

Merged
w0rldx merged 1 commit into
developfrom
fix/apphost-license-pack-location
Aug 8, 2026
Merged

fix(win): resolve apphost license pack from SDK-chosen apphost path#8
w0rldx merged 1 commit into
developfrom
fix/apphost-license-pack-location

Conversation

@w0rldx

@w0rldx w0rldx commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Fixes local Windows builds failing with 'The .NET 10.0.10 win-x64 apphost MIT license is missing from the restored host pack' on machines whose SDK bundles the pinned runtime (serves apphost from packs/ instead of the NuGet cache the target checked). Derives the pack dir from $(AppHostSourcePath); falls back to the cache path. Release build clean, RuntimeLicensePackagingTests 5/5, launcher publish copies both apphost license assets.

The apphost-license copy target hardcoded the NuGet global cache path.
That only works when the installed SDK downloads the pinned apphost pack
to the cache; a machine whose SDK BUNDLES $(DotNetRuntimeVersion) serves
the apphost from its own packs/ dir and never populates the cache, so the
build failed with 'apphost MIT license is missing from the restored host
pack'. Derive the pack directory from $(AppHostSourcePath) (the exact
apphost the SDK resolved), with the old cache path as fallback. Verified:
Release build clean; RuntimeLicensePackagingTests 5/5; launcher publish
copies both license assets.
@w0rldx
w0rldx merged commit 5284058 into develop Aug 8, 2026
1 of 3 checks passed
@w0rldx
w0rldx deleted the fix/apphost-license-pack-location branch August 8, 2026 17:37
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.

1 participant