mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 09:43:57 +08:00
Update src/System.Management.Automation/CoreCLR/CorePsAssemblyLoadContext.cs
Co-authored-by: Ilya <darpa@yandex.ru>
This commit is contained in:
parent
99172aa3ad
commit
5d04af6926
@ -252,9 +252,7 @@ namespace System.Management.Automation
|
||||
{
|
||||
fullName = Path.Combine(folder, s_nativeDllSubFolder, libraryName) + s_nativeDllExtension;
|
||||
}
|
||||
else if ((extension == ".dll" && !Platform.IsWindows) ||
|
||||
(extension == ".so" && !Platform.IsLinux) ||
|
||||
(extension == ".dylib" && !Platform.IsMacOS))
|
||||
else if (extension != s_nativeDllExtension)
|
||||
{
|
||||
fullName = Path.Combine(folder, s_nativeDllSubFolder, Path.GetFileNameWithoutExtension(libraryName)) + s_nativeDllExtension;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user