Commit 28db7c4
[xabt] Use Load() in RunPipeline instead of pre-loading all assemblies
The pre-loading approach in #11208 eagerly loads ALL ResolvedAssemblies
into the resolver cache. If any of those assemblies reference
netstandard.dll (e.g. netstandard2.1 NuGet packages), Cecil lazy
reference resolution will fail with FileNotFoundException since
netstandard.dll is not in the search directories.
Instead, use resolver.Load(source.ItemSpec) in RunPipeline to load each
assembly from its exact path when processed. This ensures the correct
TFM version is loaded without eagerly loading all assemblies upfront.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 05d6859 commit 28db7c4
1 file changed
Lines changed: 9 additions & 8 deletions
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 105 | + | |
109 | 106 | | |
110 | 107 | | |
111 | 108 | | |
112 | 109 | | |
113 | 110 | | |
114 | 111 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 112 | | |
119 | 113 | | |
120 | 114 | | |
| |||
166 | 160 | | |
167 | 161 | | |
168 | 162 | | |
169 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
0 commit comments