Skip to content

Commit e57ce73

Browse files
committed
Log information before downloading EXE stub to inform potential wait time
When the stub is not found in cache, emit an Information-level log indicating that the first-time download may take longer and show the cache directory. Behavior unchanged otherwise.
1 parent 52c3fe7 commit e57ce73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DotnetPackaging.Exe/ExePackagingService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ private static async Task<Result<string>> GetOrDownloadStub(string rid, string v
357357
return Result.Success(targetPath);
358358
}
359359

360+
// Inform users that the first-time download can take longer and that the result is cached
361+
Log.Information("Downloading installer stub for {RID} v{Version}. This may take a while the first time. Cache: {CacheDir}", rid, version, cacheDir);
362+
360363
var configuredBase = Environment.GetEnvironmentVariable("DOTNETPACKAGING_STUB_URL_BASE");
361364
var assetName = $"DotnetPackaging.Exe.Installer-{rid}-v{version}.exe";
362365
var shaName = assetName + ".sha256";

0 commit comments

Comments
 (0)