Description
The aka.ms/get-xharness install script (tools/install-xharness.sh) hardcodes --channel 8.0 for the .NET SDK install:
https://github.com/dotnet/xharness/blob/main/tools/install-xharness.sh#L39
However, recent builds of Microsoft.DotNet.XHarness.CLI have dropped net8.0 and net9.0 TFMs and now only ship net10.0/net11.0 binaries. This means the installed SDK 8.0 cannot find tools/net8.0/any/DotnetToolSettings.xml in the package, and the install fails with:
Tool 'microsoft.dotnet.xharness.cli' 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.xharness.cli' failed to install. Contact the tool author for assistance.
Impact
This breaks any downstream consumer that uses curl -L https://aka.ms/get-xharness | bash -, including dotnet/dotnet-helix-machines which uses it in the macos-simulator artifact for simulator validation in CI (e.g. build 2925391).
The last working package version is 11.0.0-prerelease.25622.1 (which still included net8.0/net9.0 TFMs). The latest version 11.0.0-prerelease.26162.6 only contains net10.0/net11.0.
Suggested fix
Update tools/install-xharness.sh (and tools/Install-XHarness.ps1) to use a SDK channel that matches the TFMs shipped in the package — e.g. change --channel 8.0 to --channel 10.0.
Description
The
aka.ms/get-xharnessinstall script (tools/install-xharness.sh) hardcodes--channel 8.0for the .NET SDK install:https://github.com/dotnet/xharness/blob/main/tools/install-xharness.sh#L39
However, recent builds of
Microsoft.DotNet.XHarness.CLIhave droppednet8.0andnet9.0TFMs and now only shipnet10.0/net11.0binaries. This means the installed SDK 8.0 cannot findtools/net8.0/any/DotnetToolSettings.xmlin the package, and the install fails with:Tool 'microsoft.dotnet.xharness.cli' 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.xharness.cli' failed to install. Contact the tool author for assistance.Impact
This breaks any downstream consumer that uses
curl -L https://aka.ms/get-xharness | bash -, includingdotnet/dotnet-helix-machineswhich uses it in themacos-simulatorartifact for simulator validation in CI (e.g. build 2925391).The last working package version is
11.0.0-prerelease.25622.1(which still includednet8.0/net9.0TFMs). The latest version11.0.0-prerelease.26162.6only containsnet10.0/net11.0.Suggested fix
Update
tools/install-xharness.sh(andtools/Install-XHarness.ps1) to use a SDK channel that matches the TFMs shipped in the package — e.g. change--channel 8.0to--channel 10.0.