Skip to content

Commit

Permalink
fix: fallback to executing assembly when entry assembly is null for r…
Browse files Browse the repository at this point in the history
…oot assembly path hint
  • Loading branch information
rdavisau committed Aug 10, 2022
1 parent 5b663ba commit b3242f3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -48,7 +48,7 @@ public Task<TargetHello> Hello(HostHello hello)
return Task.FromResult(new TargetHello
{
CanAccessSharedHostFile = canAccessHostFilesystem,
RootAssemblyPath = Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!,
RootAssemblyPath = Path.GetDirectoryName(Assembly.GetEntryAssembly()?.Location ?? Assembly.GetExecutingAssembly()?.Location)!,
ApplicationIdentifier = _configuration.ApplicationIdentifier,
UseDependencyCache = _configuration.UseDependencyCache,
UseSharedFilesystemDependencyResolution = canAccessHostFilesystem && _configuration.UseSharedFilesystemDependencyResolutionIfPossible
Expand Down

0 comments on commit b3242f3

Please sign in to comment.