interactive icon indicating copy to clipboard operation
interactive copied to clipboard

DotnetToolSettings.xml was not found in the package error after attempting to install `Microsoft.dotnet-interactive` as a tool on Ubuntu 25.04 with .NET 9.0.203

Open GeorgiivdM opened this issue 9 months ago • 0 comments

Describe the bug

Attempting to install Microsoft.dotnet-interactive as a global tool on Ubuntu 25.04 with .NET 9.0.203 fails with the following error:

Tool 'microsoft.dotnet-interactive' 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-interactive' failed to install. Contact the tool author for assistance.

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ): 1.0.617701

  • OS
    • [ ] Windows 11
    • [ ] Windows 10
    • [ ] macOS
    • [x] Linux (kubuntu 25.04)
    • [ ] iOS
    • [ ] Android
  • Browser
    • [ ] Chrome
    • [ ] Edge
    • [ ] Firefox
    • [ ] Safari
  • Frontend
    • [ ] Jupyter Notebook
    • [ ] Jupyter Lab
    • [ ] nteract
    • [ ] Visual Studio Code
    • [ ] Visual Studio Code Insiders
    • [ ] Visual Studio
    • [ ] Other (please specify)

dotnet --info output

$ dotnet --info
.NET SDK:
 Version:           9.0.203
 Commit:            dc7acfa194
 Workload version:  9.0.200-manifests.9df47798
 MSBuild version:   17.13.20+a4ef1e90f

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  25.04
 OS Platform: Linux
 RID:         ubuntu.25.04-x64
 Base Path:   /usr/lib/dotnet/sdk/9.0.203/

.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.

Host:
  Version:      9.0.5
  Architecture: x64
  Commit:       3d441471e6

.NET SDKs installed:
  9.0.203 [/usr/lib/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 9.0.5 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 9.0.5 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Diagnostics and Findings

  • The error suggests that DotnetToolSettings.xml is missing.
  • I manually downloaded and inspected the NuGet package (microsoft.dotnet-interactive.1.0.617701.nupkg) and confirmed that DotnetToolSettings.xml is present in tools/net9.0/any/ and contains:
    <?xml version="1.0" encoding="utf-8"?>
    <DotNetCliTool Version="1">
      <Commands>
        <Command Name="dotnet-interactive" EntryPoint="Microsoft.DotNet.Interactive.App.dll" Runner="dotnet" />
      </Commands>
    </DotNetCliTool>
    
  • Clearing the NuGet cache and retrying the installation did NOT resolve the issue.
  • The error persists when installing as a local tool as well.

Steps to Reproduce

  1. On Ubuntu 25.04, install .NET 9.0.203 SDK.
  2. Run: sudo dotnet tool install -v diag -g Microsoft.dotnet-interactive

Expected Result

The tool installs successfully.

Actual Result

Installation fails with a "DotnetToolSettings.xml was not found in the package" error.

[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.dotnet-interactive/index.json
[NuGet Manager] [Info]   OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.dotnet-interactive/index.json 282ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.dotnet-interactive/index.json
[NuGet Manager] [Info]   OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.dotnet-interactive/index.json 127ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.dotnet-interactive/index.json
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.dotnet-interactive/index.json 198ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.dotnet-interactive/1.0.617701/microsoft.dotnet-interactive.1.0.617701.nupkg
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.dotnet-interactive/1.0.617701/microsoft.dotnet-interactive.1.0.617701.nupkg 31ms
Verified that the NuGet package "microsoft.dotnet-interactive.1.0.617701" has a valid signature.
Tool 'microsoft.dotnet-interactive' 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-interactive' failed to install. Contact the tool author for assistance

Thank you for your assistance!

GeorgiivdM avatar May 26 '25 09:05 GeorgiivdM