Skip to content

Conversation

@YuliiaKovalova
Copy link
Member

Fixes #9773

Context

When a project's references are modified in a way that eliminates version conflicts, the existing binding redirects in the exe.config file in bin folder are not automatically removed during the next build. This PR ensures that binding redirects are properly removed when they are no longer needed.

Changes Made

Prevent .exe.config removal from obj folder by incremental clean by changing it's content with the original App.config when RAR returns empty SuggestedBindingRedirects.

Testing

Manual.

@YuliiaKovalova YuliiaKovalova merged commit 6c6231d into dotnet:main Jan 2, 2025
10 checks passed
rainersigwald added a commit that referenced this pull request Jan 31, 2025
YuliiaKovalova pushed a commit that referenced this pull request Feb 3, 2025
This was referenced Oct 15, 2025
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.

[Bug]: removing the reason of bindingRedirect doesn't trigger exe.config file to be regenerated

3 participants