Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect apphost being used when publishing for self-contained single-file with NoBuild=true #45060

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

elinor-fung
Copy link
Member

The _GetAppHostCreationConfiguration target sets the _UseSingleFileHostForPublish property, which determines if we (re-)create the app using singlefilehost on publish. When publishing with NoBuild=true, the target was not being run, so we bundled using apphost, resulting in an app that was configured to be self-contained but did not actually have the runtime as part of itself.

This change chains the target into the computation for output paths to ensure that the target runs when publishing without building, so that the correct host is used.

See https://developercommunity.visualstudio.com/t/Single-file-self-contained-failing-after/10794374

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-ILLink untriaged Request triage from a team member labels Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-ILLink untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant