Commit 039b7ea
[fix] Harden binding redirect validation to catch missing DLLs (#15778)
* Error on binding redirects pointing to missing DLLs
Change verify-binding-redirects.ps1 to fail when a binding redirect
references a DLL that isn't in the package layout. Previously this was
silently skipped, which allowed #15765 — a redirect for
DiagnosticSource 8.0.0.1 shipped in the config but the DLL was
excluded from the package.
The whole-package-missing case (VMR) is still a skip.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Remove stale DiagnosticSource and Encodings.Web redirects from vstest.console
The hardened validation script caught two more orphaned binding redirects
in vstest.console/app.config — both DLLs are explicitly excluded from
the CLI package nuspec.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix review feedback: fail locally on missing-DLL errors
- Missing-DLL errors now Write-Error instead of reporting success
- CI message distinguishes version mismatches (auto-fixable) from
missing-DLL errors (manual removal needed)
- Addresses Copilot review comments on lines 133 and 138
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix em-dash encoding in verify-binding-redirects.ps1
Replace Unicode em-dash (U+2014) with ASCII hyphen in comments and
strings. The em-dash gets corrupted to multi-byte garbage on CI's
PowerShell, causing a parse error that breaks the entire validation.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Remove FileSystemGlobbing from allow-list
It ships in the package, so allowing it would mask a future
packaging regression.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 61f0fe2 commit 039b7ea
2 files changed
Lines changed: 43 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
12 | 22 | | |
13 | 23 | | |
14 | 24 | | |
| |||
110 | 120 | | |
111 | 121 | | |
112 | 122 | | |
113 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
114 | 140 | | |
115 | 141 | | |
116 | 142 | | |
| |||
193 | 219 | | |
194 | 220 | | |
195 | 221 | | |
196 | | - | |
| 222 | + | |
197 | 223 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
202 | 233 | | |
203 | 234 | | |
204 | 235 | | |
205 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
206 | 242 | | |
207 | 243 | | |
208 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 46 | | |
56 | 47 | | |
57 | 48 | | |
| |||
0 commit comments