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

Stop touching GenerateBindingRedirects output #9338

Merged
1 commit merged into from
Oct 19, 2023

Conversation

rainersigwald
Copy link
Member

@rainersigwald rainersigwald commented Oct 17, 2023

Work item (Internal use): AB#1875355

Summary

Revert a behavior change in GenerateBindingRedirects that results in overwriting app-under-development.exe.config in situations where we didn't before 17.7, causing dev suprise.

Customer Impact

Broken inner build loop because customizations stored in .exe.config file

Regression?

Yes, in 17.7. Introduced in 0aa8c5f.

Testing

Manual testing of repro scenario, automated tests.

Risk

Low. Reverts to previous behavior in a .NET Framework-only codepath.

0aa8c5f changed the behavior of `GenerateBindingRedirects` to always
touch its output file, to prevent false-negative up-to-date checks on
subsequent incremental builds. However, this causes breaks in customer
scenarios:

1. Build, generate a `.exe.config` and copy it to the output directory.
2. Run the app, do some operation that modifies the .exe.config.
3. Make some change and rebuild the app. The .exe.config in the output
   directory is overwritten with the "fresh" copy generated by this run.

A long-term fix is tracked by #9337 but for the short term we can revert
to the pre-17.7 behavior.
@ghost
Copy link

ghost commented Oct 17, 2023

Hello! I noticed that you're targeting one of our servicing branches. Please consider updating the version.

@ghost
Copy link

ghost commented Oct 18, 2023

Hello! I noticed that you're targeting one of our servicing branches. Please consider updating the version.

@rainersigwald rainersigwald marked this pull request as ready for review October 18, 2023 20:32
@rainersigwald rainersigwald closed this pull request by merging all changes into vs17.8 in 056b0c4 Oct 19, 2023
@rainersigwald rainersigwald deleted the exp/undo-GeneratingBindingRedirects-touch branch October 19, 2023 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants