Skip to content

Commit fcb68e6

Browse files
committed
more WIP
1 parent 18b20eb commit fcb68e6

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
@@ -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)