File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/WebJobs.Script/Description/DotNet Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,20 @@ private Assembly LoadCore(AssemblyName assemblyName)
171
171
172
172
protected override Assembly Load ( AssemblyName assemblyName )
173
173
{
174
+ if ( _sharedContextAssembliesInFallbackLoad . ContainsKey ( assemblyName . Name ) )
175
+ {
176
+ // Short circuit the probing logic as we're falling back to the original load
177
+ // context (from default), so just attempt to load the assembly:
178
+ var result = LoadCore ( assemblyName ) ;
179
+
180
+ if ( result == null )
181
+ {
182
+ throw new FileNotFoundException ( $ "Could not load file or assembly '{ assemblyName } '. The system cannot find the file specified.") ;
183
+ }
184
+
185
+ return result ;
186
+ }
187
+
174
188
// Try to load from deps references, if available
175
189
if ( TryLoadDepsDependency ( assemblyName , out Assembly assembly ) )
176
190
{
You can’t perform that action at this time.
0 commit comments