зеркало из https://github.com/dotnet/sdk.git
4a4823d8b9
Fixes #40818 Context Following the changes introduced in #37311, the dotnet tool install --global command began reinstalling tools that were already installed, which involved deleting and then adding the same tool version again. Before this release, it was not possible to install a version that was already installed. This behavior change was reported in #40818. I propose a modification to avoid reinstalling tools that are already installed. Change The current installation flow involves uninstalling all matching tools and then installing them again. My change modifies this flow by first checking if the requested best match package version is already installed. If it is, the flow is stopped, and a message is printed: 'Tool '{0}' is already installed'. |
||
---|---|---|
.. | ||
SampleGlobalTool | ||
SampleGlobalToolWithDifferentCasing | ||
SampleGlobalToolWithPreview | ||
SampleGlobalToolWithShim | ||
DotnetToolSettingsGolden.xml | ||
DotnetToolSettingsMajorHigherVersion.xml | ||
DotnetToolSettingsMalformed.xml | ||
DotnetToolSettingsMissing.xml | ||
DotnetToolSettingsMissingVersion.xml | ||
LocalToolsResolverCacheTests.cs | ||
LockFileMatcherTests.cs | ||
Microsoft.DotNet.PackageInstall.Tests.csproj | ||
MockFirstPartyNuGetPackageSigningVerifier.cs | ||
NuGetPackageInstallerExtractTests.cs | ||
NuGetPackageInstallerTests.cs | ||
Stage2ProjectRestorer.cs | ||
ToolConfigurationDeserializerTests.cs | ||
ToolPackageDownloaderTests.cs | ||
ToolPackageInstallerNugetCacheTests.cs | ||
ToolPackageUninstallerTests.cs | ||
UnixFilePermissionsSample.xml | ||
UnixFilePermissionsTests.cs |