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 app.config not getting updated in output #8586

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

JanKrivanek
Copy link
Member

@JanKrivanek JanKrivanek commented Mar 22, 2023

Fixes https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1741178 (https://developercommunity.visualstudio.com/t/Always-copy-appconfig-to-executable-fol/10270579)

Context

Customer reported that their app.config is not occasionaly getting updated in output folder.
Turns out to be a real issue specific to usage of AutoGenerateBindingRedirects.

Reason

tl;dr;: Caused by wrong up-to-date condition on GenerateBindingRedirects target

More details:
Upon closer investigation, the app config is not getting copied as the up-to-date-check is comparing to the file in obj:

image

It's getting into that location with GenerateBindingRedirects - however that was skipped in repro case:

image

This turns out to be caused by a wrong item specified as input for the target - hence the target was skipped if the change occured only to the app.config

@rainersigwald rainersigwald added this to the VS 17.6 milestone Mar 28, 2023
@rainersigwald rainersigwald merged commit 659c51e into dotnet:main Mar 28, 2023
@JanKrivanek JanKrivanek deleted the bugfix/app-config-copy branch March 30, 2023 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants