Skip to content

Unable to update global tool to the latest prerelease version #2551

@danroth27

Description

@danroth27

I tried updating to the latest prerelease version of the dotnet-httprepl tool, but there doesn't appear to be a way to do so using the update command:

C:\>dotnet tool update -g --add-source https://dotnet.myget.org/F/dotnet-core/api/v3/index.json dotnet-httprepl
error NU1103: Unable to find a stable package dotnet-httprepl with version
error NU1103:   - Found 9 version(s) in dotnet-core [ Nearest version: 2.2.0-preview3-35304 ]
error NU1103:   - Found 1 version(s) in nuget.org [ Nearest version: 2.2.0-preview2-35157 ]
error NU1103:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages
error NU1103:   - Found 0 version(s) in C:\Program Files\dotnet\sdk\NuGetFallbackFolder
error NU1103:   - Found 0 version(s) in blazor-dev
Tool 'dotnet-httprepl' failed to update due to the following:
The tool package could not be restored.
Tool 'dotnet-httprepl' failed to install. This failure may have been caused by:

* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET Core tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.

Notice that the message recommends using the --version option, which doesn't appear to be supported with update:

C:\>dotnet tool update -g --version 2.2.0-* --add-source https://dotnet.myget.org/F/dotnet-core/api/v3/index.json dotnet-httprepl
Unrecognized command or argument '2.2.0-*'
Unrecognized command or argument 'dotnet-httprepl'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions