Document binding redirect generation for unit test projects (DLL targets)#51969
Merged
Conversation
…utputType Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Improve documentation on assembly binding redirection
Document binding redirect generation for unit test projects (DLL targets)
Mar 2, 2026
BillWagner
approved these changes
Mar 2, 2026
BillWagner
left a comment
Member
There was a problem hiding this comment.
This is ready for final review.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the .NET Framework assembly binding redirect documentation to explain why unit test projects (DLL outputs) don’t get automatic binding redirect generation and how to enable .dll.config generation via MSBuild properties.
Changes:
- Expanded article metadata to reflect added unit test guidance.
- Added a new subsection describing how to generate binding redirects for unit test projects by setting
AutoGenerateBindingRedirectsandGenerateBindingRedirectsOutputType.
meaghanlewis
approved these changes
Mar 2, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unit test projects compile to DLLs and are silently excluded from automatic binding redirect generation, causing runtime
FileLoadExceptionwhen assembly version conflicts exist—with no documentation explaining why or how to fix it.Changes
redirect-assembly-versions.md: Added a new subsection under "Redirect versions for tests, plugins, or libraries used by another component" explaining:.dll.configgeneration via two MSBuild propertiesAfter rebuilding, a
.dll.configfile appears alongside the test assembly in the output directory containing the generated binding redirects.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.
Internal previews