Browse Source

fix build error for single file artifacts (#1656)

pull/1657/head
Jason Dove 1 year 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> @@ -194,10 +194,12 @@ public abstract class CallLibraryScannerHandler<TRequest>
string processFileName = Environment.ProcessPath ?? string.Empty;
string processExecutable = Path.GetFileNameWithoutExtension(processFileName);
string folderName = Path.GetDirectoryName(
"dotnet".Equals(processExecutable, StringComparison.OrdinalIgnoreCase)
? typeof(EntityIdResult).Assembly.Location
: processFileName);
string folderName = Path.GetDirectoryName(processFileName);
if ("dotnet".Equals(processExecutable, StringComparison.OrdinalIgnoreCase))
{
folderName = AppContext.BaseDirectory;
}
if (!string.IsNullOrWhiteSpace(folderName))
{
string localFileName = Path.Combine(folderName, executable);

Loading…
Cancel
Save