aboutsummaryrefslogtreecommitdiff
path: root/third-party
diff options
context:
space:
mode:
Diffstat (limited to 'third-party')
-rw-r--r--third-party/DotNetCorePlugins/src/Loader/ManagedLoadContext.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/third-party/DotNetCorePlugins/src/Loader/ManagedLoadContext.cs b/third-party/DotNetCorePlugins/src/Loader/ManagedLoadContext.cs
index 01b985e..6e4f024 100644
--- a/third-party/DotNetCorePlugins/src/Loader/ManagedLoadContext.cs
+++ b/third-party/DotNetCorePlugins/src/Loader/ManagedLoadContext.cs
@@ -71,9 +71,7 @@ namespace McMaster.NETCore.Plugins.Loader
_preferDefaultLoadContext = preferDefaultLoadContext;
_loadInMemory = loadInMemory;
- _resourceRoots = new[] { _basePath }
- .Concat(resourceProbingPaths)
- .ToArray();
+ _resourceRoots = [_basePath, .. resourceProbingPaths];
_shadowCopyNativeLibraries = shadowCopyNativeLibraries;
_unmanagedDllShadowCopyDirectoryPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());