Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install Pickles.CommandLine v4 #632

Open
arkiaconsulting opened this issue May 20, 2022 · 1 comment
Open

Cannot install Pickles.CommandLine v4 #632

arkiaconsulting opened this issue May 20, 2022 · 1 comment

Comments

@arkiaconsulting
Copy link

When installing/upgrading Pickles.CommandLine to v4 with

dotnet tool install -g Pickles.CommandLine

the command fails with:

The settings file in the tool's NuGet package is invalid: Settings file 'DotnetToolSettings.xml' was not found in the package.

Workaround: force the installation of the version 3.0.1

Tested under Windows/Linux
Installed dotnet Sdk version: 6.0.200

@zadigus
Copy link

zadigus commented Jun 21, 2022

I get the very same error when building the following docker image:

FROM mcr.microsoft.com/dotnet/sdk:6.0.301-bullseye-slim-amd64

RUN dotnet tool install -g Pickles.CommandLine --version 4.0.1

Running

docker build .

results in

 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                                                                                                                                                                             0.0s 
 => => transferring dockerfile: 797B                                                                                                                                                                                                                                                                                                                                                                                             0.0s 
 => [internal] load .dockerignore                                                                                                                                                                                                                                                                                                                                                                                                0.0s 
 => => transferring context: 2B                                                                                                                                                                                                                                                                                                                                                                                                  0.0s 
 => [internal] load metadata for mcr.microsoft.com/dotnet/sdk:6.0.301-bullseye-slim-amd64                                                                                                                                                                                                                                                                                                                                        0.0s 
 => CACHED [stage-1 1/2] FROM mcr.microsoft.com/dotnet/sdk:6.0.301-bullseye-slim-amd64                                                                                                                                                                                                                                                                                                                                           0.0s 
 => ERROR [stage-1 2/2] RUN dotnet tool install -g Pickles.CommandLine --version 4.0.1                                                                                                                                                                                                                                                                                                                                           8.9s 
------
 > [stage-1 2/2] RUN dotnet tool install -g Pickles.CommandLine --version 4.0.1:
#5 8.855 The settings file in the tool's NuGet package is invalid: Settings file 'DotnetToolSettings.xml' was not found in the package.
#5 8.855 Tool 'pickles.commandline' failed to install. Contact the tool author for assistance.
------
executor failed running [/bin/sh -c dotnet tool install -g Pickles.CommandLine --version 4.0.1]: exit code: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants