Skip to content

Commit 04f8d66

Browse files
committed
Reverting fallback load handling
1 parent 1350d2a commit 04f8d66

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/WebJobs.Script/Description/DotNet/FunctionAssemblyLoadContext.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -171,20 +171,6 @@ private Assembly LoadCore(AssemblyName assemblyName)
171171

172172
protected override Assembly Load(AssemblyName assemblyName)
173173
{
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-
188174
// Try to load from deps references, if available
189175
if (TryLoadDepsDependency(assemblyName, out Assembly assembly))
190176
{

0 commit comments

Comments
 (0)