Skip to content

Unable to perform clean (when not yet installed) install as dotnet tool. #745

@OkkeHendriks

Description

@OkkeHendriks

Instead of installing fsharplint I get an error when installing the dotnet tool.
I do not yet have any fsharplint version installed.

When running dotnet.exe tool install -g dotnet-fsharplint, I get:

Tool 'dotnet-fsharplint' failed to update due to the following:
The settings file in the tool's NuGet package is invalid: Settings file 'DotnetToolSettings.xml' was not found in the package.
Tool 'dotnet-fsharplint' failed to install. Contact the tool author for assistance.

When running without -g (dotnet.exe tool install dotnet-fsharplint), I get:

Unhandled exception: Microsoft.DotNet.ToolPackage.ToolConfigurationException: Settings file 'DotnetToolSettings.xml' was not found in the package.   
   at Microsoft.DotNet.ToolPackage.ToolPackageInstance.DeserializeToolConfiguration(LockFileTargetLibrary library)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstance.GetToolConfiguration()
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at Microsoft.DotNet.ToolPackage.ToolPackageInstance.GetCommands()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at Microsoft.DotNet.Tools.Tool.Install.ToolInstallLocalCommand.InstallNewTool(FilePath manifestFile)
   at Microsoft.DotNet.Tools.Tool.Install.ToolInstallLocalCommand.Execute()
   at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult)
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)

A colleague is able to install (globally only), but it might be because he already had a previous version installed?
He gets:
Tool 'dotnet-fsharplint' was successfully updated from version '0.24.2' to version '0.25.0'.

When performing a local (clean) install het get the same error as above.

After a (global) uninstall he also gets:

Tool 'dotnet-fsharplint' failed to update due to the following:
The settings file in the tool's NuGet package is invalid: Settings file 'DotnetToolSettings.xml' was not found in the package.
Tool 'dotnet-fsharplint' failed to install. Contact the tool author for assistance.

For completeness:
My dotnet version 8.0.314
Colleagues dotnet version: 9.0.203.

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions