Skip to content

Nuget CLI does not support dotnet-tool #6982

Closed
@tebeco

Description

Details about Problem

Until this #6981 #6978 #6761 is fixed ... i have to use nuget install instead of dotnet whatever to install nuget ... so this is begining to be not funny anymore

NuGet product used :

  • NuGet.exe
  • VS UI
  • dotnet.exe

NuGet version : NuGet Version: 4.6.0.4971

dotnet.exe --version : 2.1.300-rc1-008673 [C:\Program Files\dotnet\sdk]

VS version : Vs2017 15.7.2

OS version :

OS Name:                   Microsoft Windows 10 Enterprise
OS Version:                10.0.15063 N/A Build 15063

Worked before? Never probably ?

Detailed repro steps so we can see the same problem

SET BUILD_PACKAGES=BuildPackages
SET FAKE_CLI="%BUILD_PACKAGES%/fake.exe"

    nuget install fake-cli^
        -OutputDirectory ./%BUILD_PACKAGES% ^
        -Source https://www.myget.org/F/fake-vsts/api/v3/index.json ^
        -Prerelease ^
        -ExcludeVersion

OutPut :

"Installing 'fake-cli' dotnet tool"
Feeds used:
  https://www.myget.org/F/fake-vsts/api/v3/index.json

Installing package 'fake-cli' to './BuildPackages'.
  CACHE https://www.myget.org/F/fake-vsts/api/v3/registration1/fake-cli/index.json


Attempting to gather dependency information for package 'fake-cli.5.0.0-rc017.241' with respect to project './BuildPackages', targeting 'Any,Version=v0.0'
Gathering dependency information took 39.63 ms
Attempting to resolve dependencies for package 'fake-cli.5.0.0-rc017.241' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'fake-cli.5.0.0-rc017.241'
Resolved actions to install package 'fake-cli.5.0.0-rc017.241'
Retrieving package 'fake-cli 5.0.0-rc017.241' from 'https://www.myget.org/F/fake-vsts/api/v3/index.json'.
WARNING: Install failed. Rolling back...
Executing nuget actions took 89.01 ms
Error NU5000: Package 'fake-cli 5.0.0-rc017.241' has a package type 'DotnetTool' that is not supported by project './BuildPackages'.

soooo, any solution knowing that as of today dotnet does not authenticate on the proxy (error 407) ?

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions