Use ApplicationBasePath instead of entry assembly to locate reference
assemblies.
This commit is contained in:
parent
5a257a7107
commit
59e87f497f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue