Skip to content

Commit b851d31

Browse files
committed
Update where command to output project paths instead of package paths
The where command was printing OutputPath (the nupkg path) for each registered project. Changed it to print ProjectPath (the csproj path) to match the which command's behavior. https://claude.ai/code/session_01V3PnuN1BXFiVX5aiyXC8hT
1 parent 604c3fe commit b851d31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CommandLine/Commands/Where.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public WhereCommand(XRepoEnvironment environment)
2828
var packageRegistration = environment.PackageRegistry.GetPackage(name)
2929
?? throw new CommandFailureException(12, $"No package with name '{name}' is registered. Have you ever built it on this machine?");
3030

31-
Console.Out.WriteList("packages", packageRegistration.Projects.OrderByDescending(p => p.Timestamp).Select(p => p.OutputPath));
31+
Console.Out.WriteList("projects", packageRegistration.Projects.OrderByDescending(p => p.Timestamp).Select(p => p.ProjectPath));
3232
});
3333
}
3434
}

0 commit comments

Comments
 (0)