pr feedback
This commit is contained in:
parent
0553b7c67e
commit
069092ff41
1 changed files with 7 additions and 4 deletions
|
@ -40,8 +40,11 @@ namespace Microsoft.DotNet.ProjectModel.Loader
|
|||
{
|
||||
NativeLibraryExtensions = new[] { ".so" };
|
||||
}
|
||||
else
|
||||
{
|
||||
NativeLibraryExtensions = new string[0];
|
||||
}
|
||||
}
|
||||
|
||||
public ProjectLoadContext(IDictionary<AssemblyName, string> assemblyPaths,
|
||||
IDictionary<string, string> nativeLibraries,
|
||||
|
@ -76,12 +79,12 @@ namespace Microsoft.DotNet.ProjectModel.Loader
|
|||
|
||||
private bool SearchForLibrary(string[] extensions, string name, out string path)
|
||||
{
|
||||
foreach(var searchPath in _searchPaths)
|
||||
foreach (var searchPath in _searchPaths)
|
||||
{
|
||||
foreach(var extension in extensions)
|
||||
foreach (var extension in extensions)
|
||||
{
|
||||
var candidate = Path.Combine(searchPath, name + extension);
|
||||
if(File.Exists(candidate))
|
||||
if (File.Exists(candidate))
|
||||
{
|
||||
path = candidate;
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue