Commit 40c57de
authored
[release/9.0.1xx] Fix incorrect apphost being used when publishing for self-contained single-file with
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.NoBuild=true (#45400)1 parent 9809204 commit 40c57de
File tree
2 files changed
+42
-4
lines changed- src/Tasks/Microsoft.NET.Build.Tasks/targets
- test/Microsoft.NET.Publish.Tests
2 files changed
+42
-4
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
793 | | - | |
794 | | - | |
795 | | - | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
| |||
981 | 981 | | |
982 | 982 | | |
983 | 983 | | |
984 | | - | |
| 984 | + | |
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
| |||
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
554 | 592 | | |
555 | 593 | | |
556 | 594 | | |
| |||
0 commit comments