pr feedback

This commit is contained in:
Andrew Stanton-Nurse 2015-12-08 11:50:33 -08:00
parent 0553b7c67e
commit 069092ff41

View file

@ -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;