-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[ClickOnce] Consider CopyToPublishDirectory property before publishing Content Items. #9486
Conversation
Hello! I noticed that you're targeting one of our servicing branches. Please consider updating the version. |
0247baa
to
18d6582
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to take this for 17.9 QB mode? If so we'll need the paperwork . . .
Most likely since today is the last day for M2 approvals and the change I am making for the CR will incur another test pass. |
Bug has been updated with the QB mode template. |
Hello! I noticed that you're targeting one of our servicing branches. Please consider updating the version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Fixes #
AB#1921153
Summary
For Blazor apps, ClickOnce is publishing the staticwebassets.json file which is marked as CopyToPublishDirectory = Never. There are local paths in this json file so when the app is installed on a different machine where the local paths don't exist, the app crashes on launch.
Changes Made
Now when we determine the Content Items to publish, we look at the CopyToPublishDirectory metadata and exclude items that have it set to Never.
Customer Impact
Customers with Blazor Apps using ClickOnce to publish are seeing a failure to launch the app after upgrading to 17.8. Due to ClickOnce changes we made in 17.8 as part of PR 9299, we are incorrectly publishing the staticassets.json file. This is being addressed in this PR.
Regression?
Yes
Testing
Blazor app publishing scenario verified.
CTI team has done a regression test pass with the private.
Risk
Low