Browse Source

fix build error for single file artifacts (#1656)

pull/1657/head
Jason Dove 2 years ago committed by GitHub
parent
commit
3ce341eee5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      ErsatzTV.Application/Libraries/Commands/CallLibraryScannerHandler.cs

10
ErsatzTV.Application/Libraries/Commands/CallLibraryScannerHandler.cs

@ -194,10 +194,12 @@ public abstract class CallLibraryScannerHandler<TRequest>
string processFileName = Environment.ProcessPath ?? string.Empty; string processFileName = Environment.ProcessPath ?? string.Empty;
string processExecutable = Path.GetFileNameWithoutExtension(processFileName); string processExecutable = Path.GetFileNameWithoutExtension(processFileName);
string folderName = Path.GetDirectoryName( string folderName = Path.GetDirectoryName(processFileName);
"dotnet".Equals(processExecutable, StringComparison.OrdinalIgnoreCase) if ("dotnet".Equals(processExecutable, StringComparison.OrdinalIgnoreCase))
? typeof(EntityIdResult).Assembly.Location {
: processFileName); folderName = AppContext.BaseDirectory;
}
if (!string.IsNullOrWhiteSpace(folderName)) if (!string.IsNullOrWhiteSpace(folderName))
{ {
string localFileName = Path.Combine(folderName, executable); string localFileName = Path.Combine(folderName, executable);

Loading…
Cancel
Save