Merge pull request #1382 from dotnet/prkrishn/depedencymodel

Use ApplicationBasePath instead of entry assembly to locate reference assemblies.
This commit is contained in:
Pranav K 2016-02-12 10:47:34 -08:00
commit 75b4e7cd54

View file

@ -25,7 +25,7 @@ namespace Microsoft.Extensions.DependencyModel
string basePath;
var appBase = Path.GetDirectoryName(entryAssembly.Location);
var appBase = PlatformServices.Default.Application.ApplicationBasePath;
var refsDir = Path.Combine(appBase, "refs");
var hasRefs = Directory.Exists(refsDir);
var isProject = string.Equals(LibraryType, "project", StringComparison.OrdinalIgnoreCase);