Skip to content

Commit cbec4f8

Browse files
rainersigwaldarturcic
authored andcommitted
Return null from AssemblyLoadContext on unknown
This allows the runtime to handle attempting to load the file in another ALC, rather than forcing it to attempt to load it in the Default context.
1 parent 9c0887a commit cbec4f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitVersionTask.MsBuild/LibGit2Sharp/GitLoaderContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected override Assembly Load(AssemblyName assemblyName)
2626
return LoadFromAssemblyPath(path);
2727
}
2828

29-
return Default.LoadFromAssemblyName(assemblyName);
29+
return null;
3030
}
3131

3232
protected override IntPtr LoadUnmanagedDll(string unmanagedDllName)

0 commit comments

Comments
 (0)