picklesdoc / pickles

The open source living documentation generator
http://www.picklesdoc.com/
Apache License 2.0
464 stars 162 forks source link

Cannot install Pickles.CommandLine v4 #632

Open arkiaconsulting opened 2 years ago

arkiaconsulting commented 2 years ago

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 commented 2 years ago

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