Skip to content

Commit 95371bb

Browse files
committed
more WIP
1 parent 5500362 commit 95371bb

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
@@ -225,7 +225,7 @@ internal static int ProcessArgs(string[] args)
225225
// walk the parent command tree to find the top-level command name and get the full command name for this parseresult
226226
List<string> parentNames = [parseResult.CommandResult.Command.Name];
227227
var current = parseResult.CommandResult.Parent;
228-
while (parseResult.CommandResult.Parent is CommandResult parentCommandResult)
228+
while (current is CommandResult parentCommandResult)
229229
{
230230
parentNames.Add(parentCommandResult.Command.Name);
231231
current = parentCommandResult.Parent;

src/Cli/dotnet/ToolPackage/ToolPackageDownloader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ protected override NuGetVersion DownloadAndExtractPackage(
6666
bool includeUnlisted = false
6767
)
6868
{
69-
using var _downloadActivity = Activities.s_source.StartActivity("download-tool");
70-
_downloadActivity?.DisplayName = $"Downloading tool {packageId}@{packageVersion}";
7169
var versionFolderPathResolver = new VersionFolderPathResolver(packagesRootPath);
7270

7371
string folderToDeleteOnFailure = null;
7472
return TransactionalAction.Run<NuGetVersion>(() =>
7573
{
74+
using var _downloadActivity = Activities.s_source.StartActivity("download-tool");
75+
_downloadActivity?.DisplayName = $"Downloading tool {packageId}@{packageVersion}";
7676
var packagePath = nugetPackageDownloader.DownloadPackageAsync(packageId, packageVersion, packageSourceLocation,
7777
includeUnlisted: includeUnlisted, downloadFolder: new DirectoryPath(packagesRootPath)).ConfigureAwait(false).GetAwaiter().GetResult();
7878
_downloadActivity?.AddEvent(new("Downloaded package"));

0 commit comments

Comments
 (0)