Skip to content

Commit 0416057

Browse files
committed
more WIP
1 parent 53fdb6e commit 0416057

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Cli/dotnet/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static void InvokeBuiltInCommand(ParseResult parseResult, out int exitCode)
291291
// walk the parent command tree to find the top-level command name and get the full command name for this parseresult
292292
List<string> parentNames = [parseResult.CommandResult.Command.Name];
293293
var current = parseResult.CommandResult.Parent;
294-
while (parseResult.CommandResult.Parent is CommandResult parentCommandResult)
294+
while (current is CommandResult parentCommandResult)
295295
{
296296
parentNames.Add(parentCommandResult.Command.Name);
297297
current = parentCommandResult.Parent;

src/Cli/dotnet/ToolPackage/ToolPackageDownloader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ protected override NuGetVersion DownloadAndExtractPackage(
6161
bool includeUnlisted = false
6262
)
6363
{
64-
using var _downloadActivity = Activities.s_source.StartActivity("download-tool");
65-
_downloadActivity?.DisplayName = $"Downloading tool {packageId}@{packageVersion}";
6664
var versionFolderPathResolver = new VersionFolderPathResolver(packagesRootPath);
6765

6866
string? folderToDeleteOnFailure = null;
6967
return TransactionalAction.Run(() =>
7068
{
69+
using var _downloadActivity = Activities.s_source.StartActivity("download-tool");
70+
_downloadActivity?.DisplayName = $"Downloading tool {packageId}@{packageVersion}";
7171
var packagePath = nugetPackageDownloader.DownloadPackageAsync(packageId, packageVersion, packageSourceLocation,
7272
includeUnlisted: includeUnlisted, downloadFolder: new DirectoryPath(packagesRootPath)).ConfigureAwait(false).GetAwaiter().GetResult();
7373
_downloadActivity?.AddEvent(new("Downloaded package"));

0 commit comments

Comments
 (0)