-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Installing a tool that targets a framework not installed gives a non-actionable error message.#38172
Feature
Copy link
Labels
Area-Toolscli-uxIssues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on)Issues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on)
Milestone
Description
Describe the bug
Attempt to install a tool that targets a framework version not present. The error message emitted complains about a missing DotNetToolSettings.xml file.
To Reproduce
dotnet tool install --global microsoft.dotnet.genapi.tool --add-source https://dnceng.pkgs.visualstudio.com/public/_packaging/dotnet9-transport/nuget/v3/index.json --prerelease
Exceptions (if any)
Error observed:
Tool 'microsoft.dotnet.genapi.tool' 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 'microsoft.dotnet.genapi.tool' failed to install. Contact the tool author for assistance.
Further technical details
This was reproduced with a machine that didn't have net9.0 SDK installed. To fix it, you can install the SDK, or use the package from the dotnet8-transport feed instead.
The SDK should do better when installing the tool to notify the user they might need to update the SDK.
butti71, OskarKlintrot, Green0wl, Danielku15, BearCarpenter and 8 moreCopilot
Metadata
Metadata
Labels
Area-Toolscli-uxIssues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on)Issues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on)