You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository was archived by the owner on Apr 27, 2026. It is now read-only.
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 #3951
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
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:
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
Describe the bug
Attempting to install
Microsoft.dotnet-interactiveas a global tool on Ubuntu 25.04 with .NET 9.0.203 fails with the following error:Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the
#!aboutmagic command. ): 1.0.617701dotnet --info output
Diagnostics and Findings
DotnetToolSettings.xmlis missing.microsoft.dotnet-interactive.1.0.617701.nupkg) and confirmed thatDotnetToolSettings.xmlis present intools/net9.0/any/and contains:Steps to Reproduce
sudo dotnet tool install -v diag -g Microsoft.dotnet-interactiveExpected Result
The tool installs successfully.
Actual Result
Installation fails with a "DotnetToolSettings.xml was not found in the package" error.
Thank you for your assistance!