Commit 5fc0474
Ship net462 SCI (9.0.0.11) next to Common.dll, keep netstandard2.0 (9.0.0.0) in Extensions subfolder
SCI 9.0.11 has an AssemblyVersion split: the net462 build is 9.0.0.11 while
netstandard2.0/net8.0/net9.0 are all 9.0.0.0. Common.dll compiled against the
net462 facade references 9.0.0.11, so hosts without injected binding redirects
(e.g. DTA-style) need the 9.0.0.11 file on disk next to Common.dll.
However, net9 acceptance-test processes Assembly.LoadFrom net462 extension DLLs
from an Extensions subfolder; if SCI 9.0.0.11 is present there, the CLR refuses
the conflicting load because SCI 9.0.0.0 is already loaded from the runtime.
Ship both flavors in different folders:
- tools/net462/Common7/IDE/Extensions/TestPlatform/System.Collections.Immutable.dll -> 9.0.0.11 (net462)
- tools/net462/Common7/IDE/Extensions/TestPlatform/Extensions/System.Collections.Immutable.dll -> 9.0.0.0 (netstandard2.0)
- tools/net462/System.Collections.Immutable.dll (Portable package) -> 9.0.0.11 (net462)
- tools/net8.0/TestHostNetFramework/System.Collections.Immutable.dll -> 9.0.0.0 (netstandard2.0)
Also restore app.config binding redirects newVersion to 9.0.0.11 so testhost/
vstest.console/datacollector resolve SCI cleanly against the 9.0.0.11 file
shipped next to them.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 73bc009 commit 5fc0474
7 files changed
Lines changed: 19 additions & 5 deletions
File tree
- src
- datacollector
- package
- Microsoft.TestPlatform.Portable
- Microsoft.TestPlatform
- testhost.x86
- vstest.console
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| 101 | + | |
98 | 102 | | |
99 | 103 | | |
100 | 104 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
110 | 119 | | |
111 | 120 | | |
112 | 121 | | |
| |||
127 | 136 | | |
128 | 137 | | |
129 | 138 | | |
| 139 | + | |
130 | 140 | | |
131 | 141 | | |
132 | 142 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments