-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Closed
elinor-fung
wants to merge
1,765
commits into
dotnet:release/9.0.2xx
from
elinor-fung:fix-singlefile-sc-no-build
Closed
Fix incorrect apphost being used when publishing for self-contained single-file with NoBuild=true
#45060
elinor-fung
wants to merge
1,765
commits into
dotnet:release/9.0.2xx
from
elinor-fung:fix-singlefile-sc-no-build
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…0241105.8 Microsoft.SourceBuild.Intermediate.templating , Microsoft.TemplateEngine.Abstractions , Microsoft.TemplateEngine.Mocks From Version 10.0.100-alpha.1.24553.1 -> To Version 10.0.100-alpha.1.24555.8
…reateProjectTemplatesTargetTo10
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
…05d7b53-17c1-4d7a-826d-46f9121d9fb1
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Viktor Hofer <[email protected]>
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Viktor Hofer <[email protected]> Co-authored-by: Jason Zhai <[email protected]>
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Viktor Hofer <[email protected]> Co-authored-by: Jason Zhai <[email protected]>
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Matt Thalman <[email protected]> Co-authored-by: Viktor Hofer <[email protected]>
Co-authored-by: Viktor Hofer <[email protected]> Co-authored-by: Michael Simons <[email protected]>
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
…s from the local artifacts assets path (dotnet#44692)
…106.3 Microsoft.SourceBuild.Intermediate.fsharp , Microsoft.FSharp.Compiler From Version 9.0.200-beta.24555.1 -> To Version 9.0.200-beta.24556.3
…0241106.3 dotnet-dev-certs , dotnet-user-jwts , dotnet-user-secrets , Microsoft.AspNetCore.Analyzers , Microsoft.AspNetCore.App.Ref , Microsoft.AspNetCore.App.Ref.Internal , Microsoft.AspNetCore.App.Runtime.win-x64 , Microsoft.AspNetCore.Authorization , Microsoft.AspNetCore.Components.SdkAnalyzers , Microsoft.AspNetCore.Components.Web , Microsoft.AspNetCore.Mvc.Analyzers , Microsoft.AspNetCore.Mvc.Api.Analyzers , Microsoft.Extensions.FileProviders.Embedded , Microsoft.Extensions.ObjectPool , Microsoft.JSInterop , VS.Redist.Common.AspNetCore.SharedFramework.x64.10.0 , Microsoft.SourceBuild.Intermediate.aspnetcore From Version 10.0.0-alpha.2.24556.1 -> To Version 10.0.0-alpha.2.24556.3
dotnet-issue-labeler
bot
added
Area-ILLink
untriaged
Request triage from a team member
labels
Nov 23, 2024
A workaround for SDK 9.0.100 users is to add this block in their project file: <Target Name="_Workaround_dotnet_sdk_45060" BeforeTargets="_GetComHostPaths">
<CallTarget Targets="_GetAppHostCreationConfiguration" />
</Target> |
elinor-fung
requested review from
a team,
tmat,
AntonLapounov,
lewing,
akoeplinger,
pavelsavara,
maraf and
vijayrkn
as code owners
November 26, 2024 22:12
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
_GetAppHostCreationConfiguration
target sets the_UseSingleFileHostForPublish
property, which determines if we (re-)create the app usingsinglefilehost
on publish. When publishing withNoBuild=true
, the target was not being run, so we bundled usingapphost
, 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