Skip to content

Commit 7032fbb

Browse files
committed
[FIX] tool-update: Compare tool versions correctly
1 parent 84a453a commit 7032fbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallGlobalOrToolPathCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ private NuGetVersion GetBestMatchNugetVersion(PackageId packageId, VersionRange
249249

250250
private static bool ToolVersionAlreadyInstalled(IToolPackage oldPackageNullable, NuGetVersion nuGetVersion)
251251
{
252-
return oldPackageNullable != null && (oldPackageNullable.Version.Version == nuGetVersion.Version);
252+
return oldPackageNullable != null && (oldPackageNullable.Version == nuGetVersion);
253253
}
254254

255255
private static void EnsureVersionIsHigher(IToolPackage oldPackageNullable, IToolPackage newInstalledPackage, bool allowDowngrade)

0 commit comments

Comments
 (0)